aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-07-14 04:47:51 +0100
committerRobin Houston <robin@lenny.robin>2011-07-14 04:47:51 +0100
commit018f650a59d259c843bc0d2cf159984059578b57 (patch)
tree08ed5797dc737b876d5b5150cdfa0ac4c2563b61
parentef95d5a730498bccd4dd19b0531e510c6c9461e0 (diff)
Use the ADMIN_BASE_URL config variable if present, rather than ignoring it
-rwxr-xr-xapp/helpers/link_to_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index 935912a61..6d8ae345e 100755
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -162,7 +162,7 @@ module LinkToHelper
# Admin pages
def admin_url(relative_path)
- admin_url_prefix = admin_general_index_path+"/"
+ admin_url_prefix = MySociety::Config.get("ADMIN_BASE_URL", admin_general_index_path+"/")
return admin_url_prefix + relative_path
end