From 3ff01d5096c8a52d7d46f72cf361e49ec6f4e93a Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 25 Oct 2012 22:58:45 +0200 Subject: ajout titre aux pages --- app/controllers/errorController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/errorController.php') diff --git a/app/controllers/errorController.php b/app/controllers/errorController.php index 3b6f202ab..092609280 100644 --- a/app/controllers/errorController.php +++ b/app/controllers/errorController.php @@ -2,8 +2,6 @@ class ErrorController extends ActionController { public function indexAction () { - View::prependTitle (Translate::t ('error') . ' - '); - switch (Request::param ('code')) { case 403: $this->view->code = 'Error 403 - Forbidden'; @@ -22,5 +20,7 @@ class ErrorController extends ActionController { } $this->view->logs = Request::param ('logs'); + + View::prependTitle ($this->view->code . ' - '); } } -- cgit v1.2.3