diff options
| author | 2013-12-15 11:28:27 +0100 | |
|---|---|---|
| committer | 2013-12-15 11:28:27 +0100 | |
| commit | b4463cb69e64ff2dfe840ef69f1b825ecdbee43e (patch) | |
| tree | 30203852047d7d984211dbe9677b8261e8f3eb57 /app/Controllers/errorController.php | |
| parent | 4ee4f16ffe06e247d2cb79a2054ab5d5315d82b2 (diff) | |
Problème casse renommage répertoire
Diffstat (limited to 'app/Controllers/errorController.php')
| -rw-r--r-- | app/Controllers/errorController.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/Controllers/errorController.php b/app/Controllers/errorController.php new file mode 100644 index 000000000..d1c2f8fec --- /dev/null +++ b/app/Controllers/errorController.php @@ -0,0 +1,26 @@ +<?php + +class FreshRSS_error_Controller extends Minz_ActionController { + public function indexAction () { + switch (Minz_Request::param ('code')) { + case 403: + $this->view->code = 'Error 403 - Forbidden'; + break; + case 404: + $this->view->code = 'Error 404 - Not found'; + break; + case 500: + $this->view->code = 'Error 500 - Internal Server Error'; + break; + case 503: + $this->view->code = 'Error 503 - Service Unavailable'; + break; + default: + $this->view->code = 'Error 404 - Not found'; + } + + $this->view->logs = Minz_Request::param ('logs'); + + Minz_View::prependTitle ($this->view->code . ' - '); + } +} |
