Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions htdocs/modules/plugins/admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
use PluginsLocale as t;

/**
* banners module
* plugins module
*
* @copyright XOOPS Project (http://xoops.org)
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @package banners
* @package plugins
* @since 2.6.0
* @author Mage Grégory (AKA Mage)
* @author trabis <lusopoemas@gmail.com>
* @version $Id$
*/
include __DIR__ . '/header.php';
Expand Down
13 changes: 12 additions & 1 deletion htdocs/modules/plugins/preloads/preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginsPreload extends PreloadItem
public static function eventCoreIncludeCommonClassmaps($args)
{
$path = dirname(__DIR__);
XoopsLoad::addMap(array(
\XoopsLoad::addMap(array(
'plugins' => $path . '/class/helper.php',
'pluginsmanager' => $path . '/class/manager.php',
));
Expand All @@ -53,4 +53,15 @@ public static function eventCoreModulePluginGetPlugins($args)
}
}

/**
* Updates plugins on module install
*
* @param $args
*/
public static function eventSystemModuleInstall($args) {
\Xoops::getInstance()->setActiveModules();
//Adds new plugins if available and remove them if modules were deactivated
PluginsManager::updatePlugins();
}

}