functions for plugins
This commit is contained in:
parent
d7f3f67b2f
commit
4ded5485d8
|
@ -273,14 +273,20 @@ function getPlugin($pluginClassName) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DEPRACTED
|
||||||
// Returns TRUE if the plugin is enabled and installed, FALSE otherwise
|
// Returns TRUE if the plugin is enabled and installed, FALSE otherwise
|
||||||
function pluginEnabled($pluginClassName) {
|
function pluginEnabled($pluginClassName) {
|
||||||
global $plugins;
|
return pluginActivated($pluginClassName);
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($plugins['all'][$pluginClassName])) {
|
// Returns TRUE if the plugin is activaed / installed, FALSE otherwise
|
||||||
return $plugins['all'][$pluginClassName]->installed();
|
function pluginActivated($pluginClassName) {
|
||||||
}
|
global $plugins;
|
||||||
return false;
|
|
||||||
|
if (isset($plugins['all'][$pluginClassName])) {
|
||||||
|
return $plugins['all'][$pluginClassName]->installed();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function activatePlugin($pluginClassName) {
|
function activatePlugin($pluginClassName) {
|
||||||
|
|
Loading…
Reference in New Issue