r62761 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62760‎ | r62761 | r62762 >
Date:08:30, 21 February 2010
Author:maxsem
Status:ok
Tags:
Comment:
Don't display useless --dbuser and --dbpass in sqlite.php help
Modified paths:
  • /trunk/phase3/maintenance/sqlite.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/sqlite.php
@@ -31,6 +31,14 @@
3232 $this->addOption( 'backup-to', 'Backup database to the given file', false, true );
3333 }
3434
 35+ /**
 36+ * While we use database connection, this simple lie prevents useless --dbpass and
 37+ * --dbuser options from appearing in help message for this script.
 38+ */
 39+ protected function getDbType() {
 40+ return Maintenance::DB_NONE;
 41+ }
 42+
3543 public function execute() {
3644 global $wgDBtype;
3745

Status & tagging log