X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FcleanupCaps.php;h=20be9fd1d7df4c3eb4fa4a50af0462d2d81ea5f3;hp=1b49f0e22113ba4a93ad4c9c72830ccf1243651a;hb=e90012d5581801045910f31ddefa9aee52e39d39;hpb=0770f85a0a293e6c7af6f1d3d3a1dbd2d13c1e09 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 {