aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 00:37:10 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 00:37:10 +0000
commitd5470dd1a983ea34fff531beab6171a6e6119e76 (patch)
tree29c9213ab2fb98542334cef9e8137bf8adbe880c
parent4f4f97760c32faedf378dcc40bda4066ddf8e0b7 (diff)
downloadelgg-d5470dd1a983ea34fff531beab6171a6e6119e76.tar.gz
elgg-d5470dd1a983ea34fff531beab6171a6e6119e76.tar.bz2
Fixes #2784 #2842 installer uses new plugin system now
git-svn-id: http://code.elgg.org/elgg/trunk@7993 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--install/ElggInstaller.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php
index 7042f9811..d24d4ce65 100644
--- a/install/ElggInstaller.php
+++ b/install/ElggInstaller.php
@@ -1326,12 +1326,11 @@ class ElggInstaller {
* @return void
*/
protected function enablePlugins() {
- // activate plugins with manifest.xml: elgg_install_state = enabled
- $plugins = get_plugin_list();
+ $plugins = elgg_get_plugins('any');
foreach ($plugins as $plugin) {
- if ($manifest = load_plugin_manifest($plugin)) {
- if (isset($manifest['elgg_install_state']) && $manifest['elgg_install_state'] == 'enabled') {
- enable_plugin($plugin);
+ if ($plugin->manifest) {
+ if ($plugin->manifest->getActivateOnInstall()) {
+ $plugin->activate();
}
}
}