Commit 700a3fef9cb07d31afcc576363c53f5a0b8a267b

Authored by Andrey Karpikov
1 parent 6c44348a

change version

@@ -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
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.306" 2 + VERSION = "0.0.307"
3 end 3 end