From cebf1d9fd9e8479dac300e2fad5ba1c41927b850 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Tue, 19 Nov 2013 12:04:56 +0100 Subject: Message d'erreur si fichier conf innaccessible Voir #282 --- app/App_FrontController.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'app/App_FrontController.php') 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 ()); -- cgit v1.2.3