* Get a list of all subscribed hooks, and those subscribers
* (bug 28225) Allow hiding of user groups in list=allusers
* (bug 27185) API: Add Special:ComparePages
+* (bug 28265) allow outputting of comments for action=expandtemplates
=== Languages updated in 1.18 ===
global $wgParser;
$options = new ParserOptions();
+ if ( $params['includecomments'] ) {
+ $options->setRemoveComments( false );
+ }
+
if ( $params['generatexml'] ) {
$wgParser->startExternalParse( $title_obj, $options, OT_PREPROCESS );
$dom = $wgParser->preprocessToDom( $params['text'] );
),
'text' => null,
'generatexml' => false,
+ 'includecomments' => false,
);
}
'text' => 'Wikitext to convert',
'title' => 'Title of page',
'generatexml' => 'Generate XML parse tree',
+ 'includecomments' => 'Whether to include HTML comments in the output',
);
}