X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=d34ace8fb0f5b7a7b94b7b99eab856161f4bce4f;hb=90e62fa089fcc508267dc7e68bd05b620ac99ba9;hp=f2373d97f4411dfa3b041343d5f6d42083b036fe;hpb=e305dd6ced6360a33b612dfd5d7a1c5f8aeebcc7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index f2373d97f4..d34ace8fb0 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -251,11 +251,6 @@ class OutputPage extends ContextSource { */ protected $styles = []; - /** - * Whether jQuery is already handled. - */ - protected $mJQueryDone = false; - private $mIndexPolicy = 'index'; private $mFollowPolicy = 'follow'; private $mVaryHeader = [ @@ -295,6 +290,9 @@ class OutputPage extends ContextSource { */ private $copyrightUrl; + /** @var array Profiling data */ + private $limitReportData = []; + /** * Constructor for OutputPage. This should not be called directly. * Instead a new RequestContext should be created and it will implicitly create @@ -609,29 +607,6 @@ class OutputPage extends ContextSource { $this->mModuleStyles = array_merge( $this->mModuleStyles, (array)$modules ); } - /** - * Get the list of module messages to include on this page - * - * @deprecated since 1.26 Obsolete - * @param bool $filter - * @param string|null $position - * @return array Array of module names - */ - public function getModuleMessages( $filter = false, $position = null ) { - wfDeprecated( __METHOD__, '1.26' ); - return []; - } - - /** - * Load messages of one or more ResourceLoader modules. - * - * @deprecated since 1.26 Use addModules() instead - * @param string|array $modules Module name (string) or array of module names - */ - public function addModuleMessages( $modules ) { - wfDeprecated( __METHOD__, '1.26' ); - } - /** * @return null|string ResourceLoader target */ @@ -1782,11 +1757,14 @@ class OutputPage extends ContextSource { } } - // enable OOUI if requested via ParserOutput + // Enable OOUI if requested via ParserOutput if ( $parserOutput->getEnableOOUI() ) { $this->enableOOUI(); } + // Include profiling data + $this->limitReportData = $parserOutput->getLimitReportData(); + // Link flags are ignored for now, but may in the future be // used to mark individual language links. $linkFlags = []; @@ -3103,7 +3081,13 @@ class OutputPage extends ContextSource { * @return string */ function getBottomScripts() { - return $this->getScriptsForBottomQueue(); + return $this->getScriptsForBottomQueue() . + ResourceLoader::makeInlineScript( + ResourceLoader::makeConfigSetScript( + [ 'wgPageParseReport' => $this->limitReportData ], + true + ) + ); } /**