X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2FcleanupCaps.php;h=20be9fd1d7df4c3eb4fa4a50af0462d2d81ea5f3;hb=9bc5c77c057a9d9f25c0493fbd496005cee3dee8;hp=1b49f0e22113ba4a93ad4c9c72830ccf1243651a;hpb=9171317645de4d31c61c570a9e4fa765e09ecc4d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupCaps.php b/maintenance/cleanupCaps.php index 1b49f0e221..20be9fd1d7 100644 --- a/maintenance/cleanupCaps.php +++ b/maintenance/cleanupCaps.php @@ -55,7 +55,10 @@ class CleanupCaps extends TableCleanup { $this->namespace = intval( $this->getOption( 'namespace', 0 ) ); - if ( MWNamespace::isCapitalized( $this->namespace ) ) { + if ( + MediaWikiServices::getInstance()->getNamespaceInfo()-> + isCapitalized( $this->namespace ) + ) { $this->output( "Will be moving pages to first letter capitalized titles" ); $callback = 'processRowToUppercase'; } else {