diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/FakeMapit.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/FakeMapit.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/FakeMapit.pm b/perllib/FixMyStreet/App/Controller/FakeMapit.pm index 57c2e7c27..bc46df712 100755 --- a/perllib/FixMyStreet/App/Controller/FakeMapit.pm +++ b/perllib/FixMyStreet/App/Controller/FakeMapit.pm @@ -12,13 +12,13 @@ FixMyStreet::App::Controller::FakeMapit - Catalyst Controller A controller to fake mapit when we don't have it. If you set MAPIT_URL to .../fakemapit/ it should all just work, with a mapit that assumes the whole -world is one area, with ID 0 and name "Default Area". +world is one area, with ID 161 and name "Default Area". =head1 METHODS =cut -my $area = { "name" => "Default Area", "type" => "ZZZ", "id" => 0 }; +my $area = { "name" => "Default Area", "type" => "ZZZ", "id" => 161 }; sub output : Private { my ( $self, $c, $data ) = @_; @@ -29,7 +29,7 @@ sub output : Private { sub point : Local { my ( $self, $c ) = @_; - $c->detach( 'output', [ { 0 => $area } ] ); + $c->detach( 'output', [ { 161 => $area } ] ); } sub area : Local { @@ -39,10 +39,10 @@ sub area : Local { sub areas : Local { my ( $self, $c ) = @_; - $c->detach( 'output', [ { 0 => $area } ] ); + $c->detach( 'output', [ { 161 => $area } ] ); } -sub children : Path('area/0/children') : Args(0) { +sub children : Path('area/161/children') : Args(0) { my ( $self, $c ) = @_; $c->detach( 'output', [ {} ] ); } |