class ApiExpandTemplates extends ApiBase {
public function execute() {
- // Cache may vary on $wgUser because ParserOptions gets data from it
+ // Cache may vary on the user because ParserOptions gets data from it
$this->getMain()->setCacheMode( 'anon-public-user-private' );
// Get parameters
$options->setRemoveComments( false );
}
+ $reset = null;
+ $suppressCache = false;
+ Hooks::run( 'ApiMakeParserOptions',
+ [ $options, $title_obj, $params, $this, &$reset, &$suppressCache ] );
+
$retval = [];
if ( isset( $prop['parsetree'] ) || $params['generatexml'] ) {