aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Root.pm
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-04-15 17:40:07 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-04-15 17:40:07 +0100
commit898d7c6f5f4c38ca2dd19df5c8a80ee222820130 (patch)
tree453aff56c92897564d6a4f6af8da7d23ba81b2f1 /perllib/FixMyStreet/App/Controller/Root.pm
parentbd8134a37058a5d8e562bc04bfec16fdb4a19446 (diff)
rename 404 error to be clearer
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Root.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Root.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Root.pm b/perllib/FixMyStreet/App/Controller/Root.pm
index 33f870986..830773542 100644
--- a/perllib/FixMyStreet/App/Controller/Root.pm
+++ b/perllib/FixMyStreet/App/Controller/Root.pm
@@ -68,20 +68,20 @@ Forward to the standard 404 error page
sub default : Path {
my ( $self, $c ) = @_;
- $c->detach('/page_not_found');
+ $c->detach('/page_error_404_not_found');
}
-=head2 page_not_found
+=head2 page_error_404_not_found
- $c->detach('/page_not_found', [ $error_msg ] );
+ $c->detach('/page_error_404_not_found', [ $error_msg ] );
Display a 404 page. Pass in an optional error message in an arrayref.
=cut
-sub page_not_found : Private {
+sub page_error_404_not_found : Private {
my ( $self, $c, $error_msg ) = @_;
- $c->stash->{template} = 'errors/page_not_found.html';
+ $c->stash->{template} = 'errors/page_error_404_not_found.html';
$c->stash->{error_msg} = $error_msg;
$c->response->status(404);
}