diff options
author | francis <francis> | 2008-11-07 00:01:49 +0000 |
---|---|---|
committer | francis <francis> | 2008-11-07 00:01:49 +0000 |
commit | 47d1295bd002ffb295857690c0a40c1cfc0e5f8c (patch) | |
tree | 8bab346b8544756fc1cebf87f639b42425173436 /app/helpers/link_to_helper.rb | |
parent | 3d6627cd88e204705e47bb0ac51c82f98377003c (diff) |
Lots more internal review stuff.
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rw-r--r-- | app/helpers/link_to_helper.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index f3e705196..c036dfc92 100644 --- a/app/helpers/link_to_helper.rb +++ b/app/helpers/link_to_helper.rb @@ -5,7 +5,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: link_to_helper.rb,v 1.46 2008-10-20 10:20:57 francis Exp $ +# $Id: link_to_helper.rb,v 1.47 2008-11-07 00:01:50 francis Exp $ module LinkToHelper @@ -155,8 +155,12 @@ module LinkToHelper def about_url return help_general_url(:action => 'about') end - def unhappy_url - return help_general_url(:action => 'unhappy') + def unhappy_url(info_request = nil) + if info_request.nil? + return help_general_url(:action => 'unhappy') + else + return help_general_url(:action => 'unhappy', :url_title => info_request.url_title) + end end |