summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.local>2009-03-10 19:59:02 +0100
committererdgeist <erdgeist@bauklotz.local>2009-03-10 19:59:02 +0100
commitd6049aeffc7de43393a9a7a1d2f95f26422a046f (patch)
tree7036f509aa4f4a518a00ddb0e12fe8a6eb4d563a /app/helpers
parent3b3158199f147646348fae0008d3f63062967a87 (diff)
parent14ada6b405dac2bea27a2959f6f73a7398776b0b (diff)
Merge branch 'master' of ssh://git@svn.medienhaus.udk-berlin.de/usr/local/git/cccms
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/link_helper.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb
index 68586c10..33d8a060 100644
--- a/app/helpers/link_helper.rb
+++ b/app/helpers/link_helper.rb
@@ -1,11 +1,14 @@
1module LinkHelper 1module LinkHelper
2 2
3 def link_to_path path 3 def link_to_path title, path
4 url_for( 4 params[:locale] ||= I18n.locale
5
6 link_to(
7 title,
5 :controller => :content, 8 :controller => :content,
6 :action => :render_page, 9 :action => :render_page,
7 :language => I18n.locale, 10 :locale => params[:locale],
8 :page_path => path 11 :page_path => path
9 ) 12 )
10 end 13 end
11 14