aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Location.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2014-03-26 18:01:55 +0000
committerStruan Donald <struan@exo.org.uk>2014-04-08 13:21:14 +0100
commitac7443809e921594c2a5682c49ddf388cdb2598f (patch)
tree5f2ef634eb046edf09d64252350ad3a305e96ef5 /perllib/FixMyStreet/App/Controller/Location.pm
parent796c4715cf4e0cdfab8e7acadfac5b8e55b884b8 (diff)
Use flags to indicate type of location error
This makes it a bit easier to override the message in templates which makes it a bit easier for cobrands. Leaves the default error message in location_error stash key which should prevent any existing logic breaking.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Location.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Location.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Location.pm b/perllib/FixMyStreet/App/Controller/Location.pm
index f103ff7f9..4312b6911 100644
--- a/perllib/FixMyStreet/App/Controller/Location.pm
+++ b/perllib/FixMyStreet/App/Controller/Location.pm
@@ -103,6 +103,7 @@ sub determine_location_from_pc : Private {
}
# pass errors back to the template
+ $c->stash->{location_error_pc_lookup} = 1;
$c->stash->{location_error} = $error;
return;
}