From 9a1855e931b76f1b7fe73f481de81535be817c8e Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 9 Nov 2012 16:02:37 +0100 Subject: [PATCH] Fix E_STRICT in ForeignAPIRepo The error is "Strict Standards: Declaration of ForeignAPIRepo::getZoneUrl() should be compatible with that of FileRepo::getZoneUrl() in includes/filerepo/ForeignAPIRepo.php on line 426". The second parameter of ForeignAPIRepo::getZoneUrl() was missing. Change-Id: I8f60ff9d6152225ae99c1420d3a80c72c40974eb --- includes/filerepo/ForeignAPIRepo.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index 13de9e6b71..7697e4ea41 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -337,16 +337,17 @@ class ForeignAPIRepo extends FileRepo { /** * @see FileRepo::getZoneUrl() * @param $zone String + * @param $ext String|null Optional file extension * @return String */ - function getZoneUrl( $zone ) { + function getZoneUrl( $zone, $ext = null ) { switch ( $zone ) { case 'public': return $this->url; case 'thumb': return $this->thumbUrl; default: - return parent::getZoneUrl( $zone ); + return parent::getZoneUrl( $zone, $ext ); } } -- 2.20.1