forked from GNUsocial/gnu-social
Core plugin list would not merge into $config
This commit is contained in:
parent
565e32aca3
commit
0398741956
@ -78,9 +78,11 @@ abstract class SiteProfileSettings
|
|||||||
throw new MethodNotImplementedException(__METHOD__);
|
throw new MethodNotImplementedException(__METHOD__);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static function corePlugins() {
|
||||||
|
return common_config('plugins', 'core');
|
||||||
|
}
|
||||||
static function defaultPlugins() {
|
static function defaultPlugins() {
|
||||||
return array_merge(common_config('plugins', 'core'),
|
return common_config('plugins', 'default');
|
||||||
common_config('plugins', 'default'));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,6 +108,7 @@ class PublicSite extends SiteProfileSettings
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'plugins' => array(
|
'plugins' => array(
|
||||||
|
'core' => self::corePlugins(),
|
||||||
'default' => array_merge(self::defaultPlugins(), array(
|
'default' => array_merge(self::defaultPlugins(), array(
|
||||||
'Directory' => null,
|
'Directory' => null,
|
||||||
'ExtendedProfile' => null,
|
'ExtendedProfile' => null,
|
||||||
@ -142,6 +145,7 @@ class PrivateSite extends SiteProfileSettings
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'plugins' => array(
|
'plugins' => array(
|
||||||
|
'core' => self::corePlugins(),
|
||||||
'default' => array_merge(self::defaultPlugins(), array(
|
'default' => array_merge(self::defaultPlugins(), array(
|
||||||
'Directory' => null,
|
'Directory' => null,
|
||||||
'ExtendedProfile' => null,
|
'ExtendedProfile' => null,
|
||||||
@ -194,6 +198,7 @@ class CommunitySite extends SiteProfileSettings
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'plugins' => array(
|
'plugins' => array(
|
||||||
|
'core' => self::corePlugins(),
|
||||||
'default' => array_merge(self::defaultPlugins(), array(
|
'default' => array_merge(self::defaultPlugins(), array(
|
||||||
'Directory' => null,
|
'Directory' => null,
|
||||||
'Geonames' => null,
|
'Geonames' => null,
|
||||||
@ -229,6 +234,7 @@ class SingleuserSite extends SiteProfileSettings
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'plugins' => array(
|
'plugins' => array(
|
||||||
|
'core' => self::corePlugins(),
|
||||||
'default' => array_merge(self::defaultPlugins(), array(
|
'default' => array_merge(self::defaultPlugins(), array(
|
||||||
'Geonames' => null,
|
'Geonames' => null,
|
||||||
'NewMenu' => null,
|
'NewMenu' => null,
|
||||||
|
@ -110,12 +110,12 @@ class StatusNet
|
|||||||
{
|
{
|
||||||
Router::clear();
|
Router::clear();
|
||||||
|
|
||||||
StatusNet::initDefaults($server, $path);
|
self::initDefaults($server, $path);
|
||||||
StatusNet::loadConfigFile($conffile);
|
self::loadConfigFile($conffile);
|
||||||
|
|
||||||
$sprofile = common_config('site', 'profile');
|
$sprofile = common_config('site', 'profile');
|
||||||
if (!empty($sprofile)) {
|
if (!empty($sprofile)) {
|
||||||
StatusNet::loadSiteProfile($sprofile);
|
self::loadSiteProfile($sprofile);
|
||||||
}
|
}
|
||||||
// Load settings from database; note we need autoload for this
|
// Load settings from database; note we need autoload for this
|
||||||
Config::loadSettings();
|
Config::loadSettings();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user