summaryrefslogtreecommitdiff
path: root/app/controllers/errorController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-25 22:58:45 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-25 22:58:45 +0200
commit3ff01d5096c8a52d7d46f72cf361e49ec6f4e93a (patch)
tree27e6c0ab121611b4fd1ef1924a237420cea28153 /app/controllers/errorController.php
parent93440e6b036941685185bd31d6d6cb2d032ec825 (diff)
ajout titre aux pages
Diffstat (limited to 'app/controllers/errorController.php')
-rw-r--r--app/controllers/errorController.php4
1 files changed, 2 insertions, 2 deletions
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 . ' - ');
}
}