diff options
author | chris <chris@teacherscpd.co.uk> | 2005-08-05 01:50:36 +0200 |
---|---|---|
committer | chris <chris@teacherscpd.co.uk> | 2005-08-05 01:50:36 +0200 |
commit | c90b2fb183974c22359b17366599543007f0eea3 (patch) | |
tree | 3d1f84d59b3c84707a29f8e0e2eee417660e8f9c /inc/parserutils.php | |
parent | 4f32716ed3cd44b3827d2a778211d2516344f77b (diff) | |
download | rpg-c90b2fb183974c22359b17366599543007f0eea3.tar.gz rpg-c90b2fb183974c22359b17366599543007f0eea3.tar.bz2 |
minor plugin fixes to protect against invalid/malformed plugins
darcs-hash:20050804235036-50fdc-1881a40da689bc5abbe608a2ce96a1ed192a43a4.gz
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r-- | inc/parserutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
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( |