Merge "media: Do not pass unused parameter"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 2 Dec 2018 00:18:18 +0000 (00:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 2 Dec 2018 00:18:18 +0000 (00:18 +0000)
includes/filerepo/file/ForeignAPIFile.php

index fd3dc8b..4c1bc4d 100644 (file)
@@ -321,7 +321,7 @@ class ForeignAPIFile extends File {
         */
        function getThumbPath( $suffix = '' ) {
                if ( $this->repo->canCacheThumbs() ) {
-                       $path = $this->repo->getZonePath( 'thumb' ) . '/' . $this->getHashPath( $this->getName() );
+                       $path = $this->repo->getZonePath( 'thumb' ) . '/' . $this->getHashPath();
                        if ( $suffix ) {
                                $path = $path . $suffix . '/';
                        }