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
Split down patch-comment-table.sql
[lhc/web/wiklou.git]
/
maintenance
/
updateCollation.php
diff --git
a/maintenance/updateCollation.php
b/maintenance/updateCollation.php
index
12b33b4
..
ebace75
100644
(file)
--- a/
maintenance/updateCollation.php
+++ b/
maintenance/updateCollation.php
@@
-26,6
+26,7
@@
require_once __DIR__ . '/Maintenance.php';
require_once __DIR__ . '/Maintenance.php';
+use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\IDatabase;
/**
use Wikimedia\Rdbms\IDatabase;
/**
@@
-142,7
+143,6
@@
TEXT
wfWaitForSlaves();
}
$count = 0;
wfWaitForSlaves();
}
$count = 0;
- $batchCount = 0;
$batchConds = [];
do {
$this->output( "Selecting next " . self::BATCH_SIZE . " rows..." );
$batchConds = [];
do {
$this->output( "Selecting next " . self::BATCH_SIZE . " rows..." );
@@
-187,7
+187,8
@@
TEXT
}
# cl_type will be wrong for lots of pages if cl_collation is 0,
# so let's update it while we're here.
}
# cl_type will be wrong for lots of pages if cl_collation is 0,
# so let's update it while we're here.
- $type = MWNamespace::getCategoryLinkType( $title->getNamespace() );
+ $type = MediaWikiServices::getInstance()->getNamespaceInfo()->
+ getCategoryLinkType( $title->getNamespace() );
$newSortKey = $collation->getSortKey(
$title->getCategorySortkey( $prefix ) );
if ( $verboseStats ) {
$newSortKey = $collation->getSortKey(
$title->getCategorySortkey( $prefix ) );
if ( $verboseStats ) {