diff options
| author | 2013-11-19 12:04:56 +0100 | |
|---|---|---|
| committer | 2013-11-19 13:17:08 +0100 | |
| commit | cebf1d9fd9e8479dac300e2fad5ba1c41927b850 (patch) | |
| tree | f6066ca4b2c6811c11bbc815d16dae13e6a7166c /app/App_FrontController.php | |
| parent | a80a39e975c673c6466f1eb3580e3107401d1eeb (diff) | |
Message d'erreur si fichier conf innaccessible
Voir #282
Diffstat (limited to 'app/App_FrontController.php')
| -rw-r--r-- | app/App_FrontController.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/App_FrontController.php b/app/App_FrontController.php index 3a980349a..b1e6787dc 100644 --- a/app/App_FrontController.php +++ b/app/App_FrontController.php @@ -40,7 +40,15 @@ class App_FrontController extends FrontController { } private function loadParamsView () { - $this->conf = Session::param ('conf', new RSSConfiguration ()); + try { + $this->conf = Session::param ('conf', new RSSConfiguration ()); + } catch(MinzException $e) { + // Permission denied or conf file does not exist + // it's critical! + print $e->getMessage(); + exit(); + } + View::_param ('conf', $this->conf); Session::_param ('language', $this->conf->language ()); |
