diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-03 17:04:59 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-03 17:04:59 +0000 |
commit | 99f68895e5b04e32a50a6a429b3809a741fc049f (patch) | |
tree | eb88c5b020599565769deae930e0da5f888d5a6a /actions/systemsettings/install.php | |
parent | 5c34bf26bf7e01d34cde51fd63960bdb6c17bb8c (diff) | |
download | elgg-99f68895e5b04e32a50a6a429b3809a741fc049f.tar.gz elgg-99f68895e5b04e32a50a6a429b3809a741fc049f.tar.bz2 |
Closes #399
git-svn-id: https://code.elgg.org/elgg/trunk@2180 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/systemsettings/install.php')
-rw-r--r-- | actions/systemsettings/install.php | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/actions/systemsettings/install.php b/actions/systemsettings/install.php index a72548aea..25846d6f1 100644 --- a/actions/systemsettings/install.php +++ b/actions/systemsettings/install.php @@ -81,13 +81,22 @@ // activate some plugins by default - enable_plugin('profile', $site->getGUID()); - enable_plugin('river', $site->getGUID()); - enable_plugin('updateclient', $site->getGUID()); - enable_plugin('logbrowser', $site->getGUID()); - enable_plugin('diagnostics', $site->getGUID()); - enable_plugin('uservalidationbyemail', $site->getGUID()); - + if (isset($CONFIG->default_plugins)) + { + $plugins = explode(',', $CONFIG->default_plugins); + foreach ($plugins as $plugin) + enable_plugin(trim($plugins), $site->getGUID()); + } + else + { + enable_plugin('profile', $site->getGUID()); + enable_plugin('river', $site->getGUID()); + enable_plugin('updateclient', $site->getGUID()); + enable_plugin('logbrowser', $site->getGUID()); + enable_plugin('diagnostics', $site->getGUID()); + enable_plugin('uservalidationbyemail', $site->getGUID()); + } + // Now ping home if ($usage) { |