Change nameSpace to all lowercase everywhere.

Makes it consistent with MW's spelling of the term.
This commit is contained in:
Daniel Kraus
2017-08-31 13:56:42 +02:00
parent 352add204f
commit 6bf1d3f072
6 changed files with 25 additions and 25 deletions

View File

@ -155,12 +155,12 @@ class Cli extends \Maintenance {
// Retrieve page names from the database.
$dbr = $this->getDB( DB_SLAVE );
$nameSpacesClause = str_replace( '_', ' ','(' . implode( ', ', $config->nameSpaces ) . ')' );
$namespacesClause = str_replace( '_', ' ','(' . implode( ', ', $config->namespaces ) . ')' );
$res = $dbr->select(
'page',
array( 'page_title', 'page_namespace' ),
array(
'page_namespace IN ' . $nameSpacesClause,
'page_namespace IN ' . $namespacesClause,
),
__METHOD__,
array(