Showing
2 changed files
with
5 additions
and
5 deletions
| @@ -44,10 +44,10 @@ module Kanjai | @@ -44,10 +44,10 @@ module Kanjai | ||
| 44 | case item[:name] | 44 | case item[:name] |
| 45 | when 'text' | 45 | when 'text' |
| 46 | content = item[:source] | 46 | content = item[:source] |
| 47 | - #if current_page | ||
| 48 | - # content = content.gsub('###link###', current_page.menu_url('http://', lang = nil)) | ||
| 49 | - # .gsub('###title###', current_page.lang_attributes(domain.page_langs.default, :title)) | ||
| 50 | - #end | 47 | + if current_page |
| 48 | + content = content.gsub('###link###', current_page.menu_url(session[:scheme], lang = nil)) | ||
| 49 | + .gsub('###title###', current_page.lang_attributes(I18n.locale, :title)) | ||
| 50 | + end | ||
| 51 | subparts << content | 51 | subparts << content |
| 52 | when 'repeat' | 52 | when 'repeat' |
| 53 | #get template for normal state, active state and separator | 53 | #get template for normal state, active state and separator |