X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fskins%2FSkin.php;h=ed4045d4879ef14486ad87a3193bd8cf5d80bd83;hp=69168c64ed3151186880467680ab065867307558;hb=2323b0ba8161892714c3aba9fc6a4212397e0283;hpb=e68fdb4065a4822474f98f1c6bf2c77ef52e537b diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 69168c64ed..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, ]; } @@ -503,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 */ @@ -533,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 .= '