X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignAPIRepo.php;h=55a19e8327e9782cae23a8ec03dcde21a2f82f14;hp=43f1d211b38d7c115b181b755b99cf3fc8c0a268;hb=e7720b8f8e09287384ddee271641d1b1721318bb;hpb=02e717783eedb4bcf0bb048dbdbfd96f40cc60a0 diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index 43f1d211b3..55a19e8327 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -511,7 +511,7 @@ class ForeignAPIRepo extends FileRepo { * @param string $url * @param string $timeout * @param array $options - * @param integer|bool &$mtime Resulting Last-Modified UNIX timestamp if received + * @param int|bool &$mtime Resulting Last-Modified UNIX timestamp if received * @return bool|string */ public static function httpGet( @@ -528,7 +528,7 @@ class ForeignAPIRepo extends FileRepo { } $req = MWHttpRequest::factory( $url, $options, __METHOD__ ); - $req->setUserAgent( ForeignAPIRepo::getUserAgent() ); + $req->setUserAgent( self::getUserAgent() ); $status = $req->execute(); if ( $status->isOK() ) {