summaryrefslogtreecommitdiff
path: root/inc/pluginutils.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-05-21 23:04:30 +0200
committerandi <andi@splitbrain.org>2005-05-21 23:04:30 +0200
commit107b01d60353b74aebd1901b6f19e70a998b2594 (patch)
tree5584f0b9c2eedf2050e01aac79ffe81cf6021da2 /inc/pluginutils.php
parent5233912627d370d8a346a810cc95c46554a4a8e1 (diff)
downloadrpg-107b01d60353b74aebd1901b6f19e70a998b2594.tar.gz
rpg-107b01d60353b74aebd1901b6f19e70a998b2594.tar.bz2
sorting support for syntax plugins, info plugin now actually does something
Syntax plugins now need to implement getSort() which should return a number. This number is used to add all syntax modes in the correct order. To see a list in which order current modes are loaded you can use the info plugin like this: ~~INFO:syntaxmodes~~ lists all known modes (includes existing plugins) with their sorting score ~~INFO:syntaxtypes~~ lists all syntax types and their registered modes (useful for implementing the getType() function. darcs-hash:20050521210430-9977f-2baaf6043afc6ea3fed41cdca97564218fb519c2.gz
Diffstat (limited to 'inc/pluginutils.php')
-rw-r--r--inc/pluginutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/pluginutils.php b/inc/pluginutils.php
index 3be57f2d7..49dd44816 100644
--- a/inc/pluginutils.php
+++ b/inc/pluginutils.php
@@ -48,7 +48,7 @@ function plugin_load($type,$name,&$ref){
}
//try to load the wanted plugin file
- if(!@include_once(DOKU_PLUGIN.$name.'/'.$type.'.php')){
+ if(!include_once(DOKU_PLUGIN.$name.'/'.$type.'.php')){
return false;
}