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 "Use local variabe $services instead of MediaWikiServices::getInstance()"
[lhc/web/wiklou.git]
/
maintenance
/
populateImageSha1.php
diff --git
a/maintenance/populateImageSha1.php
b/maintenance/populateImageSha1.php
index
a71abb6
..
0de9d67
100644
(file)
--- a/
maintenance/populateImageSha1.php
+++ b/
maintenance/populateImageSha1.php
@@
-21,6
+21,7
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
+use MediaWiki\MediaWikiServices;
use MediaWiki\Shell\Shell;
require_once __DIR__ . '/Maintenance.php';
use MediaWiki\Shell\Shell;
require_once __DIR__ . '/Maintenance.php';
@@
-125,7
+126,8
@@
class PopulateImageSha1 extends LoggedUpdateMaintenance {
wfWaitForSlaves();
}
wfWaitForSlaves();
}
- $file = wfLocalFile( $row->img_name );
+ $file = MediaWikiServices::getInstance()->getRepoGroup()->getLocalRepo()
+ ->newFile( $row->img_name );
if ( !$file ) {
continue;
}
if ( !$file ) {
continue;
}