aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Location.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-05-19 21:07:13 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-05-19 21:07:13 +0100
commit69018ac3b22e469cf66f526ac76b1b8469085cb5 (patch)
treebff34e3af37160175af6074f303a9170d601933c /perllib/FixMyStreet/App/Controller/Location.pm
parentb49dac25fb9ec11c09972e3a0b49690ccac3bc68 (diff)
Migrate RSS feeds handling.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Location.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Location.pm4
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 ) =