http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89000

Revision: 89000
Author:   mah
Date:     2011-05-27 21:43:07 +0000 (Fri, 27 May 2011)
Log Message:
-----------
Fix failing preprocessor tests by checking if ot is set.

Modified Paths:
--------------
    trunk/phase3/includes/parser/Preprocessor_DOM.php

Modified: trunk/phase3/includes/parser/Preprocessor_DOM.php
===================================================================
--- trunk/phase3/includes/parser/Preprocessor_DOM.php   2011-05-27 21:05:11 UTC 
(rev 88999)
+++ trunk/phase3/includes/parser/Preprocessor_DOM.php   2011-05-27 21:43:07 UTC 
(rev 89000)
@@ -185,7 +185,7 @@
                        if ( strpos( $text, '<onlyinclude>' ) !== false && 
strpos( $text, '</onlyinclude>' ) !== 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 {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to