From 107b01d60353b74aebd1901b6f19e70a998b2594 Mon Sep 17 00:00:00 2001 From: andi Date: Sat, 21 May 2005 23:04:30 +0200 Subject: 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 --- inc/pluginutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/pluginutils.php') 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; } -- cgit v1.2.3