diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-19 21:07:13 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-19 21:07:13 +0100 |
commit | 69018ac3b22e469cf66f526ac76b1b8469085cb5 (patch) | |
tree | bff34e3af37160175af6074f303a9170d601933c /perllib/FixMyStreet/App/Controller/Location.pm | |
parent | b49dac25fb9ec11c09972e3a0b49690ccac3bc68 (diff) |
Migrate RSS feeds handling.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Location.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Location.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Location.pm b/perllib/FixMyStreet/App/Controller/Location.pm index 7be8eaa0c..76f54e7b3 100644 --- a/perllib/FixMyStreet/App/Controller/Location.pm +++ b/perllib/FixMyStreet/App/Controller/Location.pm @@ -58,10 +58,10 @@ If no matches are found returns false. =cut sub determine_location_from_pc : Private { - my ( $self, $c ) = @_; + my ( $self, $c, $pc ) = @_; # check for something to search - my $pc = $c->req->param('pc') || return; + $pc ||= $c->req->param('pc') || return; $c->stash->{pc} = $pc; # for template my ( $latitude, $longitude, $error ) = |