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 "Add change-tags to MessagePoster"
[lhc/web/wiklou.git]
/
maintenance
/
rebuildImages.php
diff --git
a/maintenance/rebuildImages.php
b/maintenance/rebuildImages.php
index
c0de334
..
dfce202
100644
(file)
--- a/
maintenance/rebuildImages.php
+++ b/
maintenance/rebuildImages.php
@@
-195,9
+195,9
@@
class ImageBuilder extends Maintenance {
function addMissingImage( $filename, $fullpath ) {
$timestamp = $this->dbw->timestamp( $this->getRepo()->getFileTimestamp( $fullpath ) );
function addMissingImage( $filename, $fullpath ) {
$timestamp = $this->dbw->timestamp( $this->getRepo()->getFileTimestamp( $fullpath ) );
+ $services = MediaWikiServices::getInstance();
- $altname = MediaWikiServices::getInstance()->getContentLanguage()->
- checkTitleEncoding( $filename );
+ $altname = $services->getContentLanguage()->checkTitleEncoding( $filename );
if ( $altname != $filename ) {
if ( $this->dryrun ) {
$filename = $altname;
if ( $altname != $filename ) {
if ( $this->dryrun ) {
$filename = $altname;
@@
-214,7
+214,7
@@
class ImageBuilder extends Maintenance {
return;
}
if ( !$this->dryrun ) {
return;
}
if ( !$this->dryrun ) {
- $file =
wfLocal
File( $filename );
+ $file =
$services->getRepoGroup()->getLocalRepo()->new
File( $filename );
if ( !$file->recordUpload(
'',
'(recovered file, missing upload log entry)',
if ( !$file->recordUpload(
'',
'(recovered file, missing upload log entry)',