Index: trunk/phase3/includes/parser/Preprocessor_Hash.php |
— | — | @@ -144,6 +144,9 @@ |
145 | 145 | if ( strpos( $text, '<onlyinclude>' ) !== false && strpos( $text, '</onlyinclude>' ) !== false ) { |
146 | 146 | $enableOnlyinclude = true; |
147 | 147 | } |
| 148 | + } else if ( $this->parser->ot['wiki'] ) { |
| 149 | + $ignoredTags = array( 'noinclude', '/noinclude', 'onlyinclude', '/onlyinclude', 'includeonly', '/includeonly' ); |
| 150 | + $ignoredElements = array(); |
148 | 151 | } else { |
149 | 152 | $ignoredTags = array( 'noinclude', '/noinclude', 'onlyinclude', '/onlyinclude' ); |
150 | 153 | $ignoredElements = array( 'includeonly' ); |
Index: trunk/phase3/includes/parser/Preprocessor_DOM.php |
— | — | @@ -185,6 +185,9 @@ |
186 | 186 | if ( strpos( $text, '<onlyinclude>' ) !== false && strpos( $text, '</onlyinclude>' ) !== false ) { |
187 | 187 | $enableOnlyinclude = true; |
188 | 188 | } |
| 189 | + } else if ( $this->parser->ot['wiki'] ) { |
| 190 | + $ignoredTags = array( 'noinclude', '/noinclude', 'onlyinclude', '/onlyinclude', 'includeonly', '/includeonly' ); |
| 191 | + $ignoredElements = array(); |
189 | 192 | } else { |
190 | 193 | $ignoredTags = array( 'noinclude', '/noinclude', 'onlyinclude', '/onlyinclude' ); |
191 | 194 | $ignoredElements = array( 'includeonly' ); |