From: Jakub Vrana Date: Sat, 1 Dec 2018 16:48:35 +0000 (+0100) Subject: media: Do not pass unused parameter X-Git-Tag: 1.34.0-rc.0~3380^2 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=97771d9a78f85368db333ee81ec223777cb9c4bd;p=lhc%2Fweb%2Fwiklou.git media: Do not pass unused parameter FileRepo::getHashPath() takes a $name parameter, but File::getHashPath() doesn't. Found by PHPStan. Change-Id: I9cbcfd206249f4be7b50f2b104c797606bc4406a --- diff --git a/includes/filerepo/file/ForeignAPIFile.php b/includes/filerepo/file/ForeignAPIFile.php index fd3dc8bba6..4c1bc4d292 100644 --- a/includes/filerepo/file/ForeignAPIFile.php +++ b/includes/filerepo/file/ForeignAPIFile.php @@ -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 . '/'; }