X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=inline;f=maintenance%2FcleanupCaps.php;h=20be9fd1d7df4c3eb4fa4a50af0462d2d81ea5f3;hb=166d09893ba8e962051d763102221387d5ad5fea;hp=1b49f0e22113ba4a93ad4c9c72830ccf1243651a;hpb=be74c82f9a19f9fc5a0c771ec627b9aa9746089e;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 {