| @@ 295-300 (lines=6) @@ | ||
| 292 | $xml = $dom->__toString(); |
|
| 293 | } |
|
| 294 | $vals['parsetree'] = $xml; |
|
| 295 | } else { |
|
| 296 | $vals['badcontentformatforparsetree'] = true; |
|
| 297 | $this->setWarning( 'Conversion to XML is supported for wikitext only, ' . |
|
| 298 | $title->getPrefixedDBkey() . |
|
| 299 | ' uses content model ' . $content->getModel() ); |
|
| 300 | } |
|
| 301 | } |
|
| 302 | } |
|
| 303 | ||
| @@ 317-323 (lines=7) @@ | ||
| 314 | $title, |
|
| 315 | ParserOptions::newFromContext( $this->getContext() ) |
|
| 316 | ); |
|
| 317 | } else { |
|
| 318 | $this->setWarning( 'Template expansion is supported for wikitext only, ' . |
|
| 319 | $title->getPrefixedDBkey() . |
|
| 320 | ' uses content model ' . $content->getModel() ); |
|
| 321 | $vals['badcontentformat'] = true; |
|
| 322 | $text = false; |
|
| 323 | } |
|
| 324 | } |
|
| 325 | if ( $this->parseContent ) { |
|
| 326 | $po = $content->getParserOutput( |
|