Showing
2 changed files
with
3 additions
and
3 deletions
| ... | ... | @@ -44,7 +44,7 @@ module Kanjai |
| 44 | 44 | if @page_data.page.domain.template.present? |
| 45 | 45 | doc = Nokogiri::HTML(content_for_render) |
| 46 | 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 | 48 | end |
| 49 | 49 | |
| 50 | 50 | respond_to do |format| |
| ... | ... | @@ -59,7 +59,7 @@ module Kanjai |
| 59 | 59 | if @page_data.page.domain.template.present? |
| 60 | 60 | doc = Nokogiri::HTML(content_for_render) |
| 61 | 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 | 63 | end |
| 64 | 64 | |
| 65 | 65 | respond_to do |format| | ... | ... |