aboutsummaryrefslogtreecommitdiff
path: root/app/App_FrontController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-11-19 12:04:56 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-19 13:17:08 +0100
commitcebf1d9fd9e8479dac300e2fad5ba1c41927b850 (patch)
treef6066ca4b2c6811c11bbc815d16dae13e6a7166c /app/App_FrontController.php
parenta80a39e975c673c6466f1eb3580e3107401d1eeb (diff)
Message d'erreur si fichier conf innaccessible
Voir #282
Diffstat (limited to 'app/App_FrontController.php')
-rw-r--r--app/App_FrontController.php10
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 ());