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
Selenium: replace UserLoginPage with BlankPage where possible
[lhc/web/wiklou.git]
/
maintenance
/
cleanupWatchlist.php
diff --git
a/maintenance/cleanupWatchlist.php
b/maintenance/cleanupWatchlist.php
index
5e3aee7
..
8e4a353
100644
(file)
--- a/
maintenance/cleanupWatchlist.php
+++ b/
maintenance/cleanupWatchlist.php
@@
-29,6
+29,8
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
+use MediaWiki\MediaWikiServices;
+
require_once __DIR__ . '/cleanupTable.inc';
/**
require_once __DIR__ . '/cleanupTable.inc';
/**
@@
-58,10
+60,9
@@
class CleanupWatchlist extends TableCleanup {
}
protected function processRow( $row ) {
}
protected function processRow( $row ) {
- global $wgContLang;
$current = Title::makeTitle( $row->wl_namespace, $row->wl_title );
$display = $current->getPrefixedText();
$current = Title::makeTitle( $row->wl_namespace, $row->wl_title );
$display = $current->getPrefixedText();
- $verified =
$wgContLang
->normalize( $display );
+ $verified =
MediaWikiServices::getInstance()->getContentLanguage()
->normalize( $display );
$title = Title::newFromText( $verified );
if ( $row->wl_user == 0 || is_null( $title ) || !$title->equals( $current ) ) {
$title = Title::newFromText( $verified );
if ( $row->wl_user == 0 || is_null( $title ) || !$title->equals( $current ) ) {