diff options
author | MaZderMind | 2015-11-08 17:17:16 +0100 |
---|---|---|
committer | MaZderMind | 2015-11-08 17:17:16 +0100 |
commit | aec65f8a241d3810d5e7a029f861bc6090b65cb9 (patch) | |
tree | 467409791060ef43b13d025384df3c1c733c41e3 /model/Conferences.php | |
parent | 0d91cc5f111fac882f1bb375c2bf426195c9cae2 (diff) |
better exception-handling in mandator-code
Diffstat (limited to 'model/Conferences.php')
-rw-r--r-- | model/Conferences.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/Conferences.php b/model/Conferences.php index 10a3172..885c2c8 100644 --- a/model/Conferences.php +++ b/model/Conferences.php @@ -69,7 +69,7 @@ class Conferences extends ModelBase } public static function load($mandator) { - $GLOBALS['MANDATOR'] = $mandator; - require(forceslash(Conferences::MANDATOR_DIR).forceslash($mandator).'config.php'); + include(forceslash(Conferences::MANDATOR_DIR).forceslash($mandator).'config.php'); + return isset($GLOBALS['CONFIG']); } } |