summaryrefslogtreecommitdiff
path: root/inc/pluginutils.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-01-20 01:27:31 +0100
committerAndreas Gohr <andi@splitbrain.org>2007-01-20 01:27:31 +0100
commitc327d6c4ca39da52e40a5bf854f4223f32f12196 (patch)
tree67da65f2df34616635ce7f384f33839c9c2210af /inc/pluginutils.php
parent863befa13c43cdca8f33d5c6bd0b05f7a7618214 (diff)
downloadrpg-c327d6c4ca39da52e40a5bf854f4223f32f12196.tar.gz
rpg-c327d6c4ca39da52e40a5bf854f4223f32f12196.tar.bz2
Some renderer plugin updates
The namingscheme for renderer plugins now matches the other types, the plugin manager now returns info on renderer plugins, too darcs-hash:20070120002731-7ad00-fcea93a6a6da807103b6aa82d6472196125cb3ec.gz
Diffstat (limited to 'inc/pluginutils.php')
-rw-r--r--inc/pluginutils.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/inc/pluginutils.php b/inc/pluginutils.php
index 183e22229..8e0d686b6 100644
--- a/inc/pluginutils.php
+++ b/inc/pluginutils.php
@@ -5,18 +5,18 @@
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Andreas Gohr <andi@splitbrain.org>
*/
-
+
// plugin related constants
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
-$plugin_types = array('admin','syntax','action');
-
+$plugin_types = array('admin','syntax','action','renderer');
+
/**
* Returns a list of available plugins of given type
*
- * @param $type string, plugin_type name;
- * the type of plugin to return,
+ * @param $type string, plugin_type name;
+ * the type of plugin to return,
* use empty string for all types
- * @param $all bool;
+ * @param $all bool;
* false to only return enabled plugins,
* true to return both enabled and disabled plugins
*
@@ -30,9 +30,9 @@ function plugin_list($type='',$all=false){
while (false !== ($plugin = readdir($dh))) {
if ($plugin == '.' || $plugin == '..' || $plugin == 'tmp') continue;
if (is_file(DOKU_PLUGIN.$plugin)) continue;
-
- // if required, skip disabled plugins
- if (!$all && plugin_isdisabled($plugin)) continue;
+
+ // if required, skip disabled plugins
+ if (!$all && plugin_isdisabled($plugin)) continue;
if ($type=='' || @file_exists(DOKU_PLUGIN."$plugin/$type.php")){
$plugins[] = $plugin;