Commit 965a3caa1c31eef85f248ae22075a231b80876cd
1 parent
6a4b9d99
check generate page url, add new type for template element
Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -74,7 +74,7 @@ module Kanjai | @@ -74,7 +74,7 @@ module Kanjai | ||
| 74 | 74 | ||
| 75 | #@page_data = PageDatum.where(:url => @url).first | 75 | #@page_data = PageDatum.where(:url => @url).first |
| 76 | #$current_locale = PageLang.where(default_use: true).first.code | 76 | #$current_locale = PageLang.where(default_use: true).first.code |
| 77 | - @page_data = Kanjai::CurrentPage.new(domain: domain, lang: I18n.locale, url: @url).call | 77 | + @page_data = CurrentPage.new(domain: domain, lang: I18n.locale, url: @url).call |
| 78 | 78 | ||
| 79 | session[:current_locale] = I18n.locale | 79 | session[:current_locale] = I18n.locale |
| 80 | #if @page_data.nil? | 80 | #if @page_data.nil? |