diff options
| author | michael pereira | 2011-04-20 18:49:49 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-20 18:49:49 +0200 |
| commit | cc3660add480ac1dc217d7f853b325db7d6ec7d0 (patch) | |
| tree | 8056c87777d806c613a607c3f479ce07475b5db6 /application/controllers/ErrorController.php | |
| parent | API + Fixes (diff) | |
| parent | Url für Config gekürzt (diff) | |
| download | pbs2-cc3660add480ac1dc217d7f853b325db7d6ec7d0.tar.gz pbs2-cc3660add480ac1dc217d7f853b325db7d6ec7d0.tar.xz pbs2-cc3660add480ac1dc217d7f853b325db7d6ec7d0.zip | |
merges
Diffstat (limited to 'application/controllers/ErrorController.php')
| -rw-r--r-- | application/controllers/ErrorController.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/application/controllers/ErrorController.php b/application/controllers/ErrorController.php index 0dfcdb3..abf3ec1 100644 --- a/application/controllers/ErrorController.php +++ b/application/controllers/ErrorController.php @@ -25,13 +25,14 @@ class ErrorController extends Zend_Controller_Action // 404 error -- controller or action not found $this->getResponse()->setHttpResponseCode(404); $this->view->message = 'Page not found'; - print_a($errors); + $this->_redirect('/user/'); + # print_a($errors); break; default: // application error $this->getResponse()->setHttpResponseCode(500); - $this->view->message = 'Application error'; - print_a($errors); + $this->view->message = 'Application error - Please contact the admin'; + # print_a($errors); break; } |
