Showing
2 changed files
with
3 additions
and
3 deletions
| @@ -44,7 +44,7 @@ module Kanjai | @@ -44,7 +44,7 @@ module Kanjai | ||
| 44 | if @page_data.page.domain.template.present? | 44 | if @page_data.page.domain.template.present? |
| 45 | doc = Nokogiri::HTML(content_for_render) | 45 | doc = Nokogiri::HTML(content_for_render) |
| 46 | layer = @page_data.page.domain.template.get_html_content | 46 | layer = @page_data.page.domain.template.get_html_content |
| 47 | - content_for_render = setTemplateContent(@page_data.page.domain, @page_data.page.page_template, layer, @page_data, doc.at('body').inner_html) | 47 | + content_for_render = setTemplateContent(@page_data.page.domain, @page_data.page.domain.template, layer, @page_data, doc.at('body').inner_html) |
| 48 | end | 48 | end |
| 49 | 49 | ||
| 50 | respond_to do |format| | 50 | respond_to do |format| |
| @@ -59,7 +59,7 @@ module Kanjai | @@ -59,7 +59,7 @@ module Kanjai | ||
| 59 | if @page_data.page.domain.template.present? | 59 | if @page_data.page.domain.template.present? |
| 60 | doc = Nokogiri::HTML(content_for_render) | 60 | doc = Nokogiri::HTML(content_for_render) |
| 61 | layer = @page_data.page.domain.template.get_html_content | 61 | layer = @page_data.page.domain.template.get_html_content |
| 62 | - content_for_render = setTemplateContent(@page_data.page.domain, @page_data.page.page_template, layer, @page_data, doc.at('body').inner_html) | 62 | + content_for_render = setTemplateContent(@page_data.page.domain, @page_data.page.domain.template, layer, @page_data, doc.at('body').inner_html) |
| 63 | end | 63 | end |
| 64 | 64 | ||
| 65 | respond_to do |format| | 65 | respond_to do |format| |