Merge "Perform a permission check on the title when changing the page language"
[lhc/web/wiklou.git] / includes / media / TransformationalImageHandler.php
index 2a74e0d..32208cc 100644 (file)
@@ -36,7 +36,7 @@ use MediaWiki\MediaWikiServices;
 abstract class TransformationalImageHandler extends ImageHandler {
        /**
         * @param File $image
-        * @param array $params Transform parameters. Entries with the keys 'width'
+        * @param array &$params Transform parameters. Entries with the keys 'width'
         * and 'height' are the respective screen width and height, while the keys
         * 'physicalWidth' and 'physicalHeight' indicate the thumbnail dimensions.
         * @return bool
@@ -156,7 +156,6 @@ abstract class TransformationalImageHandler extends ImageHandler {
                        && $scalerParams['physicalHeight'] == $scalerParams['srcHeight']
                        && !isset( $scalerParams['quality'] )
                ) {
-
                        # normaliseParams (or the user) wants us to return the unscaled image
                        wfDebug( __METHOD__ . ": returning unscaled image\n" );
 
@@ -589,7 +588,7 @@ abstract class TransformationalImageHandler extends ImageHandler {
         * Runs the 'BitmapHandlerCheckImageArea' hook.
         *
         * @param File $file
-        * @param array $params
+        * @param array &$params
         * @return bool
         * @since 1.25
         */