functions for plugins

This commit is contained in:
floppy0 2017-12-27 14:44:57 +01:00
parent d7f3f67b2f
commit 4ded5485d8
1 changed files with 11 additions and 5 deletions

View File

@ -273,8 +273,14 @@ function getPlugin($pluginClassName) {
return false;
}
// DEPRACTED
// Returns TRUE if the plugin is enabled and installed, FALSE otherwise
function pluginEnabled($pluginClassName) {
return pluginActivated($pluginClassName);
}
// Returns TRUE if the plugin is activaed / installed, FALSE otherwise
function pluginActivated($pluginClassName) {
global $plugins;
if (isset($plugins['all'][$pluginClassName])) {