From 9b5196a68df018ee69cda136a1a369fcf5dac8e1 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 10 Mar 2010 12:59:44 +0000 Subject: [PATCH] Fix child class visibility --- maintenance/addwiki.php | 2 +- maintenance/checkSyntax.php | 2 +- maintenance/commandLine.inc | 2 +- maintenance/findhooks.php | 2 +- maintenance/patchSql.php | 2 +- maintenance/rebuildtextindex.php | 2 +- maintenance/renameDbPrefix.php | 2 +- maintenance/renamewiki.php | 2 +- maintenance/runBatchedQuery.php | 2 +- maintenance/sql.php | 2 +- maintenance/sqlite.php | 2 +- maintenance/updateSearchIndex.php | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/maintenance/addwiki.php b/maintenance/addwiki.php index dcce8f49d1..1aba97776c 100644 --- a/maintenance/addwiki.php +++ b/maintenance/addwiki.php @@ -38,7 +38,7 @@ class AddWiki extends Maintenance { $this->addArg( 'dbname', 'Name of database to create' ); } - protected function getDbType() { + public function getDbType() { return Maintenance::DB_ADMIN; } diff --git a/maintenance/checkSyntax.php b/maintenance/checkSyntax.php index 54f84f9650..cf1b26201e 100644 --- a/maintenance/checkSyntax.php +++ b/maintenance/checkSyntax.php @@ -39,7 +39,7 @@ class CheckSyntax extends Maintenance { $this->addOption( 'syntax-only', 'Check for syntax validity only, skip code style warnings' ); } - protected function getDbType() { + public function getDbType() { return Maintenance::DB_NONE; } diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index ab7c0a844b..332527ba6d 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -18,7 +18,7 @@ class CommandLineInc extends Maintenance { } } - protected function getDbType() { + public function getDbType() { global $wgUseNormalUser; return ( isset( $wgUseNormalUser ) && $wgUseNormalUser ) ? diff --git a/maintenance/findhooks.php b/maintenance/findhooks.php index c7b7a0d2b4..13236b6b3a 100644 --- a/maintenance/findhooks.php +++ b/maintenance/findhooks.php @@ -43,7 +43,7 @@ class FindHooks extends Maintenance { $this->addOption( 'online', 'Check against mediawiki.org hook documentation' ); } - protected function getDbType() { + public function getDbType() { return Maintenance::DB_NONE; } diff --git a/maintenance/patchSql.php b/maintenance/patchSql.php index 6071323837..0aee36f6da 100644 --- a/maintenance/patchSql.php +++ b/maintenance/patchSql.php @@ -30,7 +30,7 @@ class PatchSql extends Maintenance { $this->addArg( 'patch-name', 'Name of the patch file, either full path or in maintenance/archives' ); } - protected function getDbType() { + public function getDbType() { return Maintenance::DB_ADMIN; } diff --git a/maintenance/rebuildtextindex.php b/maintenance/rebuildtextindex.php index 03fa8975eb..4521c6f51c 100644 --- a/maintenance/rebuildtextindex.php +++ b/maintenance/rebuildtextindex.php @@ -35,7 +35,7 @@ class RebuildTextIndex extends Maintenance { $this->mDescription = "Rebuild search index table from scratch"; } - protected function getDbType() { + public function getDbType() { return Maintenance::DB_ADMIN; } diff --git a/maintenance/renameDbPrefix.php b/maintenance/renameDbPrefix.php index daf79fcacd..f73db508bf 100644 --- a/maintenance/renameDbPrefix.php +++ b/maintenance/renameDbPrefix.php @@ -30,7 +30,7 @@ class RenameDbPrefix extends Maintenance { $this->addOption( "new", "New db prefix [0 for none]", true, true ); } - protected function getDbType() { + public function getDbType() { return Maintenance::DB_ADMIN; } diff --git a/maintenance/renamewiki.php b/maintenance/renamewiki.php index 5751aea801..36437bea27 100644 --- a/maintenance/renamewiki.php +++ b/maintenance/renamewiki.php @@ -33,7 +33,7 @@ class RenameWiki extends Maintenance { $this->addArg( 'newdb', 'New DB name' ); } - protected function getDbType() { + public function getDbType() { return Maintenance::DB_ADMIN; } diff --git a/maintenance/runBatchedQuery.php b/maintenance/runBatchedQuery.php index 0a113cc265..03c56aa94c 100644 --- a/maintenance/runBatchedQuery.php +++ b/maintenance/runBatchedQuery.php @@ -50,7 +50,7 @@ class BatchedQueryRunner extends Maintenance { } while ( $affected > 0 ); } - protected function getDbType() { + public function getDbType() { return Maintenance::DB_ADMIN; } } diff --git a/maintenance/sql.php b/maintenance/sql.php index cceec00277..fd4be19a8b 100644 --- a/maintenance/sql.php +++ b/maintenance/sql.php @@ -70,7 +70,7 @@ class MwSql extends Maintenance { } } - protected function getDbType() { + public function getDbType() { return Maintenance::DB_ADMIN; } } diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index 5b856b4a6c..8886fe7463 100644 --- a/maintenance/sqlite.php +++ b/maintenance/sqlite.php @@ -35,7 +35,7 @@ class SqliteMaintenance extends Maintenance { * While we use database connection, this simple lie prevents useless --dbpass and * --dbuser options from appearing in help message for this script. */ - protected function getDbType() { + public function getDbType() { return Maintenance::DB_NONE; } diff --git a/maintenance/updateSearchIndex.php b/maintenance/updateSearchIndex.php index 6bb290ff1d..152ce1b6cd 100644 --- a/maintenance/updateSearchIndex.php +++ b/maintenance/updateSearchIndex.php @@ -40,7 +40,7 @@ class UpdateSearchIndex extends Maintenance { $this->addOption( 'l', 'How long the searchindex and revision tables will be locked for', false, true ); } - protected function getDbType() { + public function getDbType() { return Maintenance::DB_ADMIN; } -- 2.20.1