dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
783aa87
)
media: Do not pass unused parameter
author
Jakub Vrana
<jakub@vrana.cz>
Sat, 1 Dec 2018 16:48:35 +0000
(17:48 +0100)
committer
Legoktm
<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
patch
|
blob
|
history
diff --git
a/includes/filerepo/file/ForeignAPIFile.php
b/includes/filerepo/file/ForeignAPIFile.php
index
fd3dc8b
..
4c1bc4d
100644
(file)
--- 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 . '/';
}