Core and Default plugins separated, now loads on install

_flow_ reported on IRC that install.php had stopped working. This was
because default plugins had been put into two separate lists, and the
list with AuthCrypt was never loaded when performing an installation.

Core plugins cannot be disabled.

I also removed the Memcache autodetection thing since it should be
solved in a more elegant manner.
This commit is contained in:
Mikael Nordfeldth
2013-10-19 14:35:04 +02:00
parent 2f70866367
commit 2a5ba1f74b
5 changed files with 32 additions and 53 deletions

View File

@@ -79,18 +79,8 @@ abstract class SiteProfileSettings
}
static function defaultPlugins() {
return array(
'AuthCrypt' => null,
'Bookmark' => null,
'Event' => null,
'OpenID' => null,
'LRDD' => null,
'Poll' => null,
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null,
);
return array_merge(common_config('plugins', 'core'),
common_config('plugins', 'default'));
}
}
@@ -117,7 +107,6 @@ class PublicSite extends SiteProfileSettings
),
'plugins' => array(
'default' => array_merge(self::defaultPlugins(), array(
'ClientSideShorten' => null,
'Directory' => null,
'ExtendedProfile' => null,
'Geonames' => null,
@@ -154,7 +143,6 @@ class PrivateSite extends SiteProfileSettings
),
'plugins' => array(
'default' => array_merge(self::defaultPlugins(), array(
'ClientSideShorten' => null,
'Directory' => null,
'ExtendedProfile' => null,
'EmailRegistration' => null,
@@ -207,7 +195,6 @@ class CommunitySite extends SiteProfileSettings
),
'plugins' => array(
'default' => array_merge(self::defaultPlugins(), array(
'ClientSideShorten' => null,
'Directory' => null,
'Geonames' => null,
'OStatus' => null,
@@ -243,7 +230,6 @@ class SingleuserSite extends SiteProfileSettings
),
'plugins' => array(
'default' => array_merge(self::defaultPlugins(), array(
'ClientSideShorten' => null,
'Geonames' => null,
'NewMenu' => null,
'MobileProfile' => null,