From 97771d9a78f85368db333ee81ec223777cb9c4bd Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 1 Dec 2018 17:48:35 +0100 Subject: [PATCH] media: Do not pass unused parameter FileRepo::getHashPath() takes a $name parameter, but File::getHashPath() doesn't. Found by PHPStan. Change-Id: I9cbcfd206249f4be7b50f2b104c797606bc4406a --- includes/filerepo/file/ForeignAPIFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 . '/'; } -- 2.20.1