get fucked
This commit is contained in:
parent
2fbb62b5b8
commit
8d75749c24
1 changed files with 3 additions and 3 deletions
|
@ -47,10 +47,10 @@ class Configuration {
|
||||||
public static function getLocalConfig($key, $subkey = null) {
|
public static function getLocalConfig($key, $subkey = null) {
|
||||||
|
|
||||||
// Check if the key that we're looking for exists
|
// Check if the key that we're looking for exists
|
||||||
if(array_key_exists($key, self::$_LCNF)) { // If we also have a subkey we check if that exists, else we just return the default value.
|
if(array_key_exists($key, self::$_LCNF)) {
|
||||||
if($subkey && is_array($key) && array_key_exists($subkey, $key))
|
if($subkey) // If we also have a subkey return the proper shit
|
||||||
return self::$_LCNF[$key][$subkey];
|
return self::$_LCNF[$key][$subkey];
|
||||||
else
|
else // else we just return the default value
|
||||||
return self::$_LCNF[$key];
|
return self::$_LCNF[$key];
|
||||||
} else // If it doesn't exist trigger an error to avoid explosions
|
} else // If it doesn't exist trigger an error to avoid explosions
|
||||||
trigger_error('Unable to get local configuration value!', E_USER_ERROR);
|
trigger_error('Unable to get local configuration value!', E_USER_ERROR);
|
||||||
|
|
Reference in a new issue