r89000 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88999‎ | r89000 | r89001 >
Date:21:43, 27 May 2011
Author:mah
Status:ok
Tags:
Comment:
Fix failing preprocessor tests by checking if ot is set.
Modified paths:
  • /trunk/phase3/includes/parser/Preprocessor_DOM.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Preprocessor_DOM.php
@@ -185,7 +185,7 @@
186186 if ( strpos( $text, '<onlyinclude>' ) !== false && strpos( $text, '</onlyinclude>' ) !== false ) {
187187 $enableOnlyinclude = true;
188188 }
189 - } else if ( $this->parser->ot['wiki'] ) {
 189+ } else if ( isset( $this->parser->ot ) && $this->parser->ot['wiki'] ) {
190190 $ignoredTags = array( 'noinclude', '/noinclude', 'onlyinclude', '/onlyinclude', 'includeonly', '/includeonly' );
191191 $ignoredElements = array();
192192 } else {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r88997fix for Bug #93 “tilde signatures inside nowiki tags sometimes get expanded...mah20:55, 27 May 2011

Status & tagging log