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 "Cache redirects from Special:Redirect"
[lhc/web/wiklou.git]
/
maintenance
/
rebuildImages.php
diff --git
a/maintenance/rebuildImages.php
b/maintenance/rebuildImages.php
index
713492a
..
c0de334
100644
(file)
--- a/
maintenance/rebuildImages.php
+++ b/
maintenance/rebuildImages.php
@@
-32,6
+32,7
@@
require_once __DIR__ . '/Maintenance.php';
require_once __DIR__ . '/Maintenance.php';
+use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\IMaintainableDatabase;
/**
use Wikimedia\Rdbms\IMaintainableDatabase;
/**
@@
-193,11
+194,10
@@
class ImageBuilder extends Maintenance {
}
function addMissingImage( $filename, $fullpath ) {
}
function addMissingImage( $filename, $fullpath ) {
- global $wgContLang;
-
$timestamp = $this->dbw->timestamp( $this->getRepo()->getFileTimestamp( $fullpath ) );
$timestamp = $this->dbw->timestamp( $this->getRepo()->getFileTimestamp( $fullpath ) );
- $altname = $wgContLang->checkTitleEncoding( $filename );
+ $altname = MediaWikiServices::getInstance()->getContentLanguage()->
+ checkTitleEncoding( $filename );
if ( $altname != $filename ) {
if ( $this->dryrun ) {
$filename = $altname;
if ( $altname != $filename ) {
if ( $this->dryrun ) {
$filename = $altname;