[NUUG fiksgatami] [patch] Avoid some hardcoded fixmystreet.com references

Petter Reinholdtsen pere at hungry.com
Thu Jan 15 11:34:26 CET 2009


[Matthew Somerville]
> Thanks, committed.

Great.  Look good.  But this one was missing when I checked the latest
CVS source.

ndex: bci/web/index.cgi
===================================================================
RCS file: /repos/mysociety/bci/web/index.cgi,v
retrieving revision 1.239
diff -u -3 -p -u -r1.239 index.cgi
--- bci/web/index.cgi   15 Jan 2009 10:19:28 -0000      1.239
+++ bci/web/index.cgi   15 Jan 2009 10:32:49 -0000
@@ -726,7 +726,8 @@ sub display_location {
     my %input_h = map { $_ => $q->param($_) ? ent($q->param($_)) : '' } @vars;

     if ($input{y} =~ /favicon/) {
-        print $q->redirect(-location => 'http://www.fixmystreet.com/favicon.ico', -status => 301);
+        my $base = mySociety::Config::get('BASE_URL');
+        print $q->redirect(-location => $base . '/favicon.ico', -status => 301);
         return '';
     }
     my($error, $easting, $northing);


More information about the fiksgatami mailing list