diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 32e625d..bffd995 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -148,14 +148,8 @@ module ApplicationHelper link_to text, profile_path(:profile => profile) , options end - def link_to_homepage(text, profile = nil, options = {}) - p = if profile - Profile[profile] - else - user - end - - link_to text, p.url, options + def link_to_homepage(text, profile, options = {}) + link_to text, profile.url, options end def link_if_permitted(link, permission = nil, target = nil) diff --git a/app/views/account/index.html.erb b/app/views/account/index.html.erb index e8ed9d2..b7413b7 100644 --- a/app/views/account/index.html.erb +++ b/app/views/account/index.html.erb @@ -11,7 +11,7 @@

-<%= link_to_homepage(_('My home page.')) %> +<%= link_to_homepage(_('My home page.'), user) %> <%= _('See your homepage.') %>

diff --git a/app/views/region_validators/region.html.erb b/app/views/region_validators/region.html.erb index 5db5e55..6fc6e78 100644 --- a/app/views/region_validators/region.html.erb +++ b/app/views/region_validators/region.html.erb @@ -5,7 +5,7 @@