X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=fea667e850327c7104a8204d3db14abf6d42df18;hb=9fbb5b9ea8f9e83ac2d5d3bb7fd3cee38b2eeff6;hp=726fec1b848463ddb2339d5045612f736821b11c;hpb=eee8ee0b41b607445cd50b0057e982fc02340fa5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 726fec1b84..fea667e850 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -233,8 +233,8 @@ class OutputPage extends ContextSource { private $mParseWarnings = array(); /** @var int Cache stuff. Looks like mEnableClientCache */ - protected $mSquidMaxage = 0; - /** @var int Upper limit on mSquidMaxage */ + protected $mCdnMaxage = 0; + /** @var int Upper limit on mCdnMaxage */ protected $mCdnMaxageLimit = INF; /** @@ -456,6 +456,8 @@ class OutputPage extends ContextSource { /** * Add raw HTML to the list of scripts (including \ tag, etc.) + * Internal use only. Use OutputPage::addModules() or OutputPage::addJsConfigVars() + * if possible. * * @param string $script Raw HTML */ @@ -466,26 +468,31 @@ class OutputPage extends ContextSource { /** * Register and add a stylesheet from an extension directory. * + * @deprecated since 1.27 use addModuleStyles() or addStyle() instead * @param string $url Path to sheet. Provide either a full url (beginning * with 'http', etc) or a relative path from the document root * (beginning with '/'). Otherwise it behaves identically to * addStyle() and draws from the /skins folder. */ public function addExtensionStyle( $url ) { + wfDeprecated( __METHOD__, '1.27' ); array_push( $this->mExtStyles, $url ); } /** * Get all styles added by extensions * + * @deprecated since 1.27 * @return array */ function getExtStyle() { + wfDeprecated( __METHOD__, '1.27' ); return $this->mExtStyles; } /** * Add a JavaScript file out of skins/common, or a given relative path. + * Internal use only. Use OutputPage::addModules() if possible. * * @param string $file Filename in skins/common or complete on-server path * (/foo/bar.js) @@ -506,6 +513,7 @@ class OutputPage extends ContextSource { /** * Add a self-contained script tag with the given contents + * Internal use only. Use OutputPage::addModules() if possible. * * @param string $script JavaScript text, no "