X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fskins%2FSkin.php;h=ed4045d4879ef14486ad87a3193bd8cf5d80bd83;hp=83d02a0fdd8f34831f546a6d182cee3c7ccc3f16;hb=cba0fb1c1576324e87b27b6d31ee4359195025c8;hpb=faffdf358c2ef344be89c1b5f6c6d377672fab29 diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 83d02a0fdd..ed4045d487 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -414,17 +414,13 @@ abstract class Skin extends ContextSource { /** * Get the query to generate a dynamic stylesheet * + * @deprecated since 1.32 Use action=raw&ctype=text/css directly. * @return array */ public static function getDynamicStylesheetQuery() { - global $wgSquidMaxage; - return [ 'action' => 'raw', - 'maxage' => $wgSquidMaxage, - 'usemsgcache' => 'yes', 'ctype' => 'text/css', - 'smaxage' => $wgSquidMaxage, ]; } @@ -449,7 +445,8 @@ abstract class Skin extends ContextSource { if ( $title->isSpecialPage() ) { $type = 'ns-special'; // T25315: provide a class based on the canonical special page name without subpages - list( $canonicalName ) = SpecialPageFactory::resolveAlias( $title->getDBkey() ); + list( $canonicalName ) = MediaWikiServices::getInstance()->getSpecialPageFactory()-> + resolveAlias( $title->getDBkey() ); if ( $canonicalName ) { $type .= ' ' . Sanitizer::escapeClass( "mw-special-$canonicalName" ); } else { @@ -502,6 +499,10 @@ abstract class Skin extends ContextSource { /** * Whether the logo should be preloaded with an HTTP link header or not + * + * @deprecated since 1.32 Redundant. It now happens automatically based on whether + * the skin loads a stylesheet based on ResourceLoaderSkinModule, which all + * skins that use wgLogo in CSS do, and other's would not. * @since 1.29 * @return bool */ @@ -532,7 +533,7 @@ abstract class Skin extends ContextSource { $t = $embed . implode( "{$pop}{$embed}", $allCats['normal'] ) . $pop; $msg = $this->msg( 'pagecategories' )->numParams( count( $allCats['normal'] ) )->escaped(); - $linkPage = wfMessage( 'pagecategorieslink' )->inContentLanguage()->text(); + $linkPage = $this->msg( 'pagecategorieslink' )->inContentLanguage()->text(); $title = Title::newFromText( $linkPage ); $link = $title ? Linker::link( $title, $msg ) : $msg; $s .= '