git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 761a849a authored by mmn's avatar mmn

Added shared default plugin list between profiles

parent 7e4718a4
......@@ -74,6 +74,19 @@ class SiteProfile
abstract class SiteProfileSettings
{
abstract static function getSettings();
static function defaultPlugins() {
return array(
'Bookmark' => null,
'Event' => null,
'OpenID' => null,
'Poll' => null,
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null,
);
}
}
/**
......@@ -98,22 +111,14 @@ class PublicSite extends SiteProfileSettings
)
),
'plugins' => array(
'default' => array(
'Bookmark' => null,
'default' => array_merge(self::defaultPlugins(), array(
'ClientSideShorten' => null,
'Directory' => null,
'Event' => null,
'ExtendedProfile' => null,
'Geonames' => null,
'Gravatar' => null,
'OpenID' => null,
'OStatus' => null,
'Poll' => null,
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null
)
))
),
'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.)
);
......@@ -143,24 +148,16 @@ class PrivateSite extends SiteProfileSettings
)
),
'plugins' => array(
'default' => array(
'Bookmark' => null,
'default' => array_merge(self::defaultPlugins(), array(
'ClientSideShorten' => null,
'Directory' => null,
'Event' => null,
'ExtendedProfile' => null,
'EmailRegistration' => null,
'Geonames' => null,
'Gravatar' => null,
'NewMenu' => null,
'MobileProfile' => null,
'OpenID' => null,
'Poll' => null,
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null
)
))
),
'profile' => array('delete' => 'true'),
'license' => array('type' => 'private'),
......@@ -205,21 +202,13 @@ class CommunitySite extends SiteProfileSettings
)
),
'plugins' => array(
'default' => array(
'Bookmark' => null,
'default' => array_merge(self::defaultPlugins(), array(
'ClientSideShorten' => null,
'Directory' => null,
'Event' => null,
'Geonames' => null,
'Gravatar' => null,
'OpenID' => null,
'OStatus' => null,
'Poll' => null,
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null
)
))
),
'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.)
);
......@@ -249,23 +238,15 @@ class SingleuserSite extends SiteProfileSettings
)
),
'plugins' => array(
'default' => array(
'Bookmark' => null,
'default' => array_merge(self::defaultPlugins(), array(
'ClientSideShorten' => null,
'Event' => null,
'Geonames' => null,
'NewMenu' => null,
'MobileProfile' => null,
'OpenID' => null,
'OStatus' => null,
'Poll' => null,
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null,
'TwitterBridge' => null,
'FacebookBridge' => null,
)
))
),
'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.)
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment