From 99f68895e5b04e32a50a6a429b3809a741fc049f Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 3 Oct 2008 17:04:59 +0000 Subject: Closes #399 git-svn-id: https://code.elgg.org/elgg/trunk@2180 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/systemsettings/install.php | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'actions/systemsettings') 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) { -- cgit v1.2.3