diff --git a/include/Config.php b/include/Core/Config.php similarity index 94% rename from include/Config.php rename to include/Core/Config.php index e08a7de74..b5d80c82e 100644 --- a/include/Config.php +++ b/include/Core/Config.php @@ -1,7 +1,7 @@ config[$family])) { if($a->config[$family] === '!!') { - return null; + return $default_value; } } if(isset($a->config[$family][$key])) { if($a->config[$family][$key] === '!!') { - return null; + return $default_value; } return $a->config[$family][$key]; } @@ -137,7 +139,7 @@ class Config { elseif (function_exists("xcache_set")) xcache_set($family."|".$key, '!!', 600);*/ } - return null; + return $default_value; } /** diff --git a/include/PConfig.php b/include/Core/PConfig.php similarity index 93% rename from include/PConfig.php rename to include/Core/PConfig.php index 5ee4ec692..09c3c2a0b 100644 --- a/include/PConfig.php +++ b/include/Core/PConfig.php @@ -1,7 +1,7 @@ config[$uid][$family])) { if($a->config[$uid][$family] === '!!') { - return null; + return $default_value; } } if(isset($a->config[$uid][$family][$key])) { if($a->config[$uid][$family][$key] === '!!') { - return null; + return $default_value; } return $a->config[$uid][$family][$key]; } @@ -131,7 +133,7 @@ class PConfig { elseif (function_exists("xcache_set")) xcache_set($uid."|".$family."|".$key, '!!', 600);*/ } - return null; + return $default_value; } /** diff --git a/include/autoloader/autoload_psr4.php b/include/autoloader/autoload_psr4.php index fe93afea2..d000ea28f 100644 --- a/include/autoloader/autoload_psr4.php +++ b/include/autoloader/autoload_psr4.php @@ -6,4 +6,5 @@ $vendorDir = dirname(dirname(dirname(__FILE__)))."/library"; $baseDir = dirname($vendorDir); return array( + 'Friendica\\' => array($baseDir . '/include'), ); diff --git a/include/config.php b/include/config.php index 8f36dbdc8..c51db4ec7 100644 --- a/include/config.php +++ b/include/config.php @@ -1,8 +1,4 @@