X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fpage%2FImagePage.php;h=6c1ac39bb29728962cafe37e8af08fe989a29a13;hp=66804bc15241e274143eb81d3b40f03771924efc;hb=a38af7ba26579bb3004f673e44d39710887763aa;hpb=4aad8205dcc946acb0b0826ed73f87acbedd6a0b diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index 66804bc152..6c1ac39bb2 100644 --- a/includes/page/ImagePage.php +++ b/includes/page/ImagePage.php @@ -321,9 +321,7 @@ class ImagePage extends Article { $dirmark = $lang->getDirMarkEntity(); $request = $this->getContext()->getRequest(); - $max = $this->getImageLimitsFromOption( $user, 'imagesize' ); - $maxWidth = $max[0]; - $maxHeight = $max[1]; + list( $maxWidth, $maxHeight ) = $this->getImageLimitsFromOption( $user, 'imagesize' ); if ( $this->displayImg->exists() ) { # image @@ -1029,7 +1027,7 @@ EOT * * @param User $user * @param string $optionName Name of a option to check, typically imagesize or thumbsize - * @return array + * @return int[] * @since 1.21 */ public function getImageLimitsFromOption( $user, $optionName ) { @@ -1224,7 +1222,7 @@ EOT * @return TitleArray|Title[] */ public function getForeignCategories() { - $this->mPage->getForeignCategories(); + return $this->mPage->getForeignCategories(); } }