aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Configuration.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-04 19:33:29 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-04 19:33:29 +0100
commit86f69ca396572ca4d7668a33e84cb4f3b523fc4e (patch)
tree968d2cebe522ca17c6210583635d9ea7177460e8 /lib/Minz/Configuration.php
parent53410887c94157f3d11f2c30d92ff5d3d8a3a9bd (diff)
First draft for the new extension feature
- Only system extensions can be loaded for the moment by adding them in the config.php file. - Remove previous system (it will be added properly in the new system in the next step).
Diffstat (limited to 'lib/Minz/Configuration.php')
-rw-r--r--lib/Minz/Configuration.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Minz/Configuration.php b/lib/Minz/Configuration.php
index 6cbc9fc0b..4d3ab0964 100644
--- a/lib/Minz/Configuration.php
+++ b/lib/Minz/Configuration.php
@@ -69,6 +69,8 @@ class Minz_Configuration {
'max_categories' => Minz_Configuration::MAX_SMALL_INT,
);
+ private static $extensions_enabled = array();
+
/*
* Getteurs
*/
@@ -133,6 +135,9 @@ class Minz_Configuration {
public static function unsafeAutologinEnabled() {
return self::$unsafe_autologin_enabled;
}
+ public static function extensionsEnabled() {
+ return self::$extensions_enabled;
+ }
public static function _allowAnonymous($allow = false) {
self::$allow_anonymous = ((bool)$allow) && self::canLogIn();
@@ -338,6 +343,11 @@ class Minz_Configuration {
}
}
+ // Extensions
+ if (isset($ini_array['extensions']) && is_array($ini_array['extensions'])) {
+ self::$extensions_enabled = $ini_array['extensions'];
+ }
+
// Base de données
if (isset ($ini_array['db'])) {
$db = $ini_array['db'];