summaryrefslogtreecommitdiff
path: root/inc/pluginutils.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2011-09-10 20:11:29 +0100
committerAnika Henke <anika@selfthinker.org>2011-09-10 20:23:40 +0100
commit29d511bfa507384ae0872f75fb54acb44b1e915e (patch)
treebd9b3138f288fbc6786f3b28c7f3d438bf79c36f /inc/pluginutils.php
parent28b19f13203b5263ad89854a9c1df221975e4c38 (diff)
parenta95a7bf3a77d3c38a54af67b2f7584c480381691 (diff)
downloadrpg-29d511bfa507384ae0872f75fb54acb44b1e915e.tar.gz
rpg-29d511bfa507384ae0872f75fb54acb44b1e915e.tar.bz2
Merge branch 'plugincontroller' of git://github.com/piyushmishra/dokuwiki into plugincontroller
This adds support for the config_cascade when enabling/disabling plugins, making farming easier. The changes have been implemented by Piyush Mishra and are a part of the new extension manager which will follow later. It's the result of a Google Summer of Code project, the official project page can be found at http://www.google-melange.com/gsoc/project/google/gsoc2011/piyushmishra/26001 Thanks to Piyush for the work and Google for sponsoring it! Conflicts: inc/lang/en/lang.php
Diffstat (limited to 'inc/pluginutils.php')
-rw-r--r--inc/pluginutils.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/pluginutils.php b/inc/pluginutils.php
index 85bcaee1e..53cfedf82 100644
--- a/inc/pluginutils.php
+++ b/inc/pluginutils.php
@@ -16,7 +16,7 @@ function plugin_list($type='',$all=false) {
global $plugin_controller;
return $plugin_controller->getList($type,$all);
}
-function &plugin_load($type,$name,$new=false,$disabled=false) {
+function plugin_load($type,$name,$new=false,$disabled=false) {
global $plugin_controller;
return $plugin_controller->load($type,$name,$new,$disabled);
}
@@ -36,3 +36,7 @@ function plugin_directory($plugin) {
global $plugin_controller;
return $plugin_controller->get_directory($plugin);
}
+function plugin_getcascade() {
+ global $plugin_controller;
+ return $plugin_controller->getCascade();
+}