# HG changeset patch # User Dan # Date 1203632389 18000 # Node ID c9522c961e10cd15d64dbc1b058e2ac3aee751aa # Parent b66f029ae12d6251c1b5c1d7a3a53522a50d3de4 Fixed broken installer due to bad $plugins object diff -r b66f029ae12d -r c9522c961e10 includes/wikiformat.php --- a/includes/wikiformat.php Thu Feb 21 17:18:25 2008 -0500 +++ b/includes/wikiformat.php Thu Feb 21 17:19:49 2008 -0500 @@ -109,10 +109,15 @@ } global $plugins; - $code = $plugins->setHook('text_wiki_construct'); - foreach ( $code as $cmd ) + // This code can be run from the installer, so in some cases $plugins + // isn't initted. (Bug in 1.1.2, fixed for 1.1.3) + if ( is_object($plugins) ) { - eval($cmd); + $code = $plugins->setHook('text_wiki_construct'); + foreach ( $code as $cmd ) + { + eval($cmd); + } } $this->addPath(