From c90b2fb183974c22359b17366599543007f0eea3 Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 5 Aug 2005 01:50:36 +0200 Subject: minor plugin fixes to protect against invalid/malformed plugins darcs-hash:20050804235036-50fdc-1881a40da689bc5abbe608a2ce96a1ed192a43a4.gz --- inc/parserutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/parserutils.php') diff --git a/inc/parserutils.php b/inc/parserutils.php index e3bd04524..5b0e802bc 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -199,7 +199,7 @@ function p_get_parsermodes(){ global $PARSER_MODES; $obj = null; foreach($pluginlist as $p){ - $obj =& plugin_load('syntax',$p); //load plugin into $obj + if(!$obj =& plugin_load('syntax',$p)) continue; //attempt to load plugin into $obj $PARSER_MODES[$obj->getType()][] = "plugin_$p"; //register mode type //add to modes $modes[] = array( -- cgit v1.2.3