dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Test ApiUserrights"
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
ForeignAPIRepo.php
diff --git
a/includes/filerepo/ForeignAPIRepo.php
b/includes/filerepo/ForeignAPIRepo.php
index
45a5c82
..
1a86648
100644
(file)
--- a/
includes/filerepo/ForeignAPIRepo.php
+++ b/
includes/filerepo/ForeignAPIRepo.php
@@
-29,7
+29,7
@@
use MediaWiki\Logger\LoggerFactory;
* Example config:
*
* $wgForeignFileRepos[] = [
* Example config:
*
* $wgForeignFileRepos[] = [
- * 'class' =>
'ForeignAPIRepo'
,
+ * 'class' =>
ForeignAPIRepo::class
,
* 'name' => 'shared',
* 'apibase' => 'https://en.wikipedia.org/w/api.php',
* 'fetchDescription' => true, // Optional
* 'name' => 'shared',
* 'apibase' => 'https://en.wikipedia.org/w/api.php',
* 'fetchDescription' => true, // Optional
@@
-53,7
+53,7
@@
class ForeignAPIRepo extends FileRepo {
'timestamp',
];
'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)
/** @var int Check back with Commons after this expiry */
protected $apiThumbCacheExpiry = 86400; // 1 day (24*3600)
@@
-143,7
+143,7
@@
class ForeignAPIRepo extends FileRepo {
}
$data = $this->fetchImageQuery( [
}
$data = $this->fetchImageQuery( [
- 'titles' => implode(
$files, '|'
),
+ 'titles' => implode(
'|', $files
),
'prop' => 'imageinfo' ]
);
'prop' => 'imageinfo' ]
);