getList() as $plugin) { if (!in_array($plugin, $default_plugins)) { if (!$plugin_controller->disable($plugin)) { throw new Exception('Could not disable plugin "'.$plugin.'"!'); } } } // disable and enable configured plugins foreach ($this->pluginsDisabled as $plugin) { if (!$plugin_controller->disable($plugin)) { throw new Exception('Could not disable plugin "'.$plugin.'"!'); } } foreach ($this->pluginsEnabled as $plugin) { /* enable() returns false but works... if (!$plugin_controller->enable($plugin)) { throw new Exception('Could not enable plugin "'.$plugin.'"!'); } */ $plugin_controller->enable($plugin); } // reset event handler global $EVENT_HANDLER; $EVENT_HANDLER = new Doku_Event_Handler(); // reload language $local = $conf['lang']; trigger_event('INIT_LANG_LOAD', $local, 'init_lang', true); } }