Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/142201
Change subject: checkLocalNames: fix --wiki option
......................................................................
checkLocalNames: fix --wiki option
Otherwise it tries to query a database named bool(true), which
obviously fails.
Change-Id: Ib36b148199fbba06f9e64bee90f48cdda56976e2
---
M maintenance/checkLocalNames.php
1 file changed, 5 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth
refs/changes/01/142201/1
diff --git a/maintenance/checkLocalNames.php b/maintenance/checkLocalNames.php
index ab1e6bc..798463a 100644
--- a/maintenance/checkLocalNames.php
+++ b/maintenance/checkLocalNames.php
@@ -31,9 +31,12 @@
if ( $this->getOption( 'delete', false ) === true ) {
$this->dryrun = false;
}
- if ( $this->getOption( 'wiki', false ) !== false ) {
- $this->wiki = true;
+
+ $wiki = $this->getOption( 'wiki', false );
+ if ( $wiki !== false ) {
+ $this->wiki = $wiki;
}
+
if ( $this->getOption( 'verbose', false ) !== false ) {
$this->verbose = true;
}
--
To view, visit https://gerrit.wikimedia.org/r/142201
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib36b148199fbba06f9e64bee90f48cdda56976e2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits