| @@ 1225-1231 (lines=7) @@ | ||
| 1222 | # OT_WIKI will only respect <ignore> in substed templates. |
|
| 1223 | # The other output types respect it unless NO_IGNORE is set. |
|
| 1224 | # extractSections() sets NO_IGNORE and so never respects it. |
|
| 1225 | if ( ( !isset( $this->parent ) && $this->parser->ot['wiki'] ) |
|
| 1226 | || ( $flags & PPFrame::NO_IGNORE ) |
|
| 1227 | ) { |
|
| 1228 | $out .= $contextNode->textContent; |
|
| 1229 | } else { |
|
| 1230 | $out .= ''; |
|
| 1231 | } |
|
| 1232 | } elseif ( $contextNode->nodeName == 'ext' ) { |
|
| 1233 | # Extension tag |
|
| 1234 | $xpath = new DOMXPath( $contextNode->ownerDocument ); |
|
| @@ 1058-1070 (lines=13) @@ | ||
| 1055 | # Recover the literal comment in RECOVER_COMMENTS and pre+no-remove |
|
| 1056 | $out .= $contextChildren[0]; |
|
| 1057 | } |
|
| 1058 | } elseif ( $contextName === 'ignore' ) { |
|
| 1059 | # Output suppression used by <includeonly> etc. |
|
| 1060 | # OT_WIKI will only respect <ignore> in substed templates. |
|
| 1061 | # The other output types respect it unless NO_IGNORE is set. |
|
| 1062 | # extractSections() sets NO_IGNORE and so never respects it. |
|
| 1063 | if ( ( !isset( $this->parent ) && $this->parser->ot['wiki'] ) |
|
| 1064 | || ( $flags & PPFrame::NO_IGNORE ) |
|
| 1065 | ) { |
|
| 1066 | $out .= $contextChildren[0]; |
|
| 1067 | } else { |
|
| 1068 | // $out .= ''; |
|
| 1069 | } |
|
| 1070 | } elseif ( $contextName === 'ext' ) { |
|
| 1071 | # Extension tag |
|
| 1072 | $bits = PPNode_Hash_Tree::splitRawExt( $contextChildren ) + |
|
| 1073 | [ 'attr' => null, 'inner' => null, 'close' => null ]; |
|