aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Barnet.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-07 18:01:18 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-07 18:01:18 +0100
commitdb5da038ea3a3264b4bae2490dbd877cba2ecab0 (patch)
tree561f6d2ea01ba93f968d5124a2f95714376fb194 /perllib/FixMyStreet/Cobrand/Barnet.pm
parent673a2879a74d0d71c4d3be0b9c7ee567cf72b219 (diff)
parentf128b19cf7bf0da5dd445dc39d1a09e8953fc32d (diff)
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Barnet.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Barnet.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Barnet.pm b/perllib/FixMyStreet/Cobrand/Barnet.pm
index 26c7c0453..f68d61256 100644
--- a/perllib/FixMyStreet/Cobrand/Barnet.pm
+++ b/perllib/FixMyStreet/Cobrand/Barnet.pm
@@ -28,12 +28,11 @@ sub site_title {
sub enter_postcode_text {
my ($self) = @_;
- return 'Enter a Barnet postcode, or street name and area:';
+ return 'Enter a Barnet postcode, or street name and area';
}
sub council_check {
my ( $self, $params, $context ) = @_;
- my $q = $self->request;
my $councils;
if ( $params->{all_councils} ) {
@@ -53,8 +52,8 @@ sub council_check {
}
my $url = 'http://www.fixmystreet.com/';
$url .= 'alert' if $context eq 'alert';
- $url .= '?pc=' . URI::Escape::uri_escape( $q->param('pc') )
- if $q->param('pc');
+ $url .= '?pc=' . URI::Escape::uri_escape( $self->{request}->param('pc') )
+ if $self->{request}->param('pc');
my $error_msg = "That location is not covered by Barnet.
Please visit <a href=\"$url\">the main FixMyStreet site</a>.";
return ( 0, $error_msg );