dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Preserve font size in ApiSandbox when going fullscreen"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiExpandTemplates.php
diff --git
a/includes/api/ApiExpandTemplates.php
b/includes/api/ApiExpandTemplates.php
index
286fe88
..
10fb182
100644
(file)
--- a/
includes/api/ApiExpandTemplates.php
+++ b/
includes/api/ApiExpandTemplates.php
@@
-34,7
+34,7
@@
class ApiExpandTemplates extends ApiBase {
public function execute() {
class ApiExpandTemplates extends ApiBase {
public function execute() {
- // Cache may vary on
$wgU
ser because ParserOptions gets data from it
+ // Cache may vary on
the u
ser because ParserOptions gets data from it
$this->getMain()->setCacheMode( 'anon-public-user-private' );
// Get parameters
$this->getMain()->setCacheMode( 'anon-public-user-private' );
// Get parameters
@@
-77,6
+77,11
@@
class ApiExpandTemplates extends ApiBase {
$options->setRemoveComments( false );
}
$options->setRemoveComments( false );
}
+ $reset = null;
+ $suppressCache = false;
+ Hooks::run( 'ApiMakeParserOptions',
+ [ $options, $title_obj, $params, $this, &$reset, &$suppressCache ] );
+
$retval = [];
if ( isset( $prop['parsetree'] ) || $params['generatexml'] ) {
$retval = [];
if ( isset( $prop['parsetree'] ) || $params['generatexml'] ) {