media: Do not pass unused parameter
authorJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 16:48:35 +0000 (17:48 +0100)
committerLegoktm <legoktm@member.fsf.org>
Sat, 1 Dec 2018 23:53:35 +0000 (23:53 +0000)
FileRepo::getHashPath() takes a $name parameter, but File::getHashPath()
doesn't.

Found by PHPStan.

Change-Id: I9cbcfd206249f4be7b50f2b104c797606bc4406a

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 . '/';
                        }