Fix E_STRICT in ForeignAPIRepo
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 9 Nov 2012 15:02:37 +0000 (16:02 +0100)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 9 Nov 2012 15:02:37 +0000 (16:02 +0100)
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

index 13de9e6..7697e4e 100644 (file)
@@ -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 );
                }
        }