Page MenuHomePhabricator

bug93.patch

Authored By
bzimport
Nov 21 2014, 6:50 PM
Size
1 KB
Referenced Files
None
Subscribers
None

bug93.patch

Index: Preprocessor_Hash.php
===================================================================
--- Preprocessor_Hash.php (revision 59439)
+++ Preprocessor_Hash.php (working copy)
@@ -961,8 +961,12 @@
# OT_WIKI will only respect <ignore> in substed templates.
# The other output types respect it unless NO_IGNORE is set.
# extractSections() sets NO_IGNORE and so never respects it.
- if ( ( !isset( $this->parent ) && $this->parser->ot['wiki'] ) || ( $flags & self::NO_IGNORE ) ) {
+ if ( $flags & self::NO_IGNORE ) {
$out .= $contextNode->firstChild->value;
+ }
+ # Add a strip marker in PST mode so that pstPass2() can run some old-fashioned regexes on the result
+ elseif ( !isset( $this->parent ) && $this->parser->ot['wiki'] ) {
+ $out .= $this->parser->insertStripItem( $contextNode->firstChild->value );
} else {
//$out .= '';
}
Index: Preprocessor_DOM.php
===================================================================
--- Preprocessor_DOM.php (revision 59439)
+++ Preprocessor_DOM.php (working copy)
@@ -1008,8 +1008,12 @@
# OT_WIKI will only respect <ignore> in substed templates.
# The other output types respect it unless NO_IGNORE is set.
# extractSections() sets NO_IGNORE and so never respects it.
- if ( ( !isset( $this->parent ) && $this->parser->ot['wiki'] ) || ( $flags & self::NO_IGNORE ) ) {
+ if ( $flags & self::NO_IGNORE ) {
$out .= $contextNode->textContent;
+ }
+ # Add a strip marker in PST mode so that pstPass2() can run some old-fashioned regexes on the result
+ elseif ( !isset( $this->parent ) && $this->parser->ot['wiki'] ) {
+ $out .= $this->parser->insertStripItem( $contextNode->textContent );
} else {
$out .= '';
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1124
Default Alt Text
bug93.patch (1 KB)

Event Timeline