From: Mark A. Hershberger Date: Fri, 27 May 2011 21:43:07 +0000 (+0000) Subject: Fix failing preprocessor tests by checking if ot is set. X-Git-Tag: 1.31.0-rc.0~29907 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=966116e75228de138e2acfb08c9dea9537dffaca;p=lhc%2Fweb%2Fwiklou.git Fix failing preprocessor tests by checking if ot is set. --- diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index b08ed09cbf..9305496031 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -185,7 +185,7 @@ class Preprocessor_DOM implements Preprocessor { if ( strpos( $text, '' ) !== false && strpos( $text, '' ) !== false ) { $enableOnlyinclude = true; } - } else if ( $this->parser->ot['wiki'] ) { + } else if ( isset( $this->parser->ot ) && $this->parser->ot['wiki'] ) { $ignoredTags = array( 'noinclude', '/noinclude', 'onlyinclude', '/onlyinclude', 'includeonly', '/includeonly' ); $ignoredElements = array(); } else {