X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignAPIRepo.php;h=5a37701285cf5b98fc77a0599e7b51747a580dbe;hp=45a5c8247f7d42be292bec3628e6b1de134e0f03;hb=11ee7f78da9776db26098642a151a288f98bea14;hpb=a8379682a46a428320c88702c800a6107c015137 diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index 45a5c8247f..5a37701285 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -29,7 +29,7 @@ use MediaWiki\Logger\LoggerFactory; * Example config: * * $wgForeignFileRepos[] = [ - * 'class' => 'ForeignAPIRepo', + * 'class' => ForeignAPIRepo::class, * 'name' => 'shared', * 'apibase' => 'https://en.wikipedia.org/w/api.php', * 'fetchDescription' => true, // Optional @@ -53,7 +53,7 @@ class ForeignAPIRepo extends FileRepo { 'timestamp', ]; - protected $fileFactory = [ 'ForeignAPIFile', 'newFromTitle' ]; + protected $fileFactory = [ ForeignAPIFile::class, 'newFromTitle' ]; /** @var int Check back with Commons after this expiry */ protected $apiThumbCacheExpiry = 86400; // 1 day (24*3600)