X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fskins%2FSkin.php;h=df7a9edede3c8d45ccf3c748f2f5032f6a6aef33;hp=849362aae74f20dd468f96512c160b2210ed6b43;hb=1d7a1bf8bddf0908e4f572c82268733f63126a13;hpb=fd6e9ef2d481209b01fa6e1bb1c863b8257f0272 diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 849362aae7..df7a9edede 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -449,7 +449,7 @@ abstract class Skin extends ContextSource { * "" tag, skins can override it if they have a need to add in any * body attributes or classes of their own. * @param OutputPage $out - * @param array $bodyAttrs + * @param array &$bodyAttrs */ function addToBodyAttributes( $out, &$bodyAttrs ) { // does nothing by default @@ -1215,7 +1215,7 @@ abstract class Skin extends ContextSource { /** * make sure we have some title to operate on * - * @param Title $title + * @param Title &$title * @param string $name */ static function checkTitle( &$title, $name ) { @@ -1251,11 +1251,10 @@ abstract class Skin extends ContextSource { function buildSidebar() { global $wgEnableSidebarCache, $wgSidebarCacheExpiry; - $that = $this; - $callback = function () use ( $that ) { + $callback = function () { $bar = []; - $that->addToSidebar( $bar, 'sidebar' ); - Hooks::run( 'SkinBuildSidebar', [ $that, &$bar ] ); + $this->addToSidebar( $bar, 'sidebar' ); + Hooks::run( 'SkinBuildSidebar', [ $this, &$bar ] ); return $bar; }; @@ -1286,7 +1285,7 @@ abstract class Skin extends ContextSource { * * This is just a wrapper around addToSidebarPlain() for backwards compatibility * - * @param array $bar + * @param array &$bar * @param string $message */ public function addToSidebar( &$bar, $message ) { @@ -1296,7 +1295,7 @@ abstract class Skin extends ContextSource { /** * Add content from plain text * @since 1.17 - * @param array $bar + * @param array &$bar * @param string $text * @return array */