Fix child class visibility
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 10 Mar 2010 12:59:44 +0000 (12:59 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 10 Mar 2010 12:59:44 +0000 (12:59 +0000)
12 files changed:
maintenance/addwiki.php
maintenance/checkSyntax.php
maintenance/commandLine.inc
maintenance/findhooks.php
maintenance/patchSql.php
maintenance/rebuildtextindex.php
maintenance/renameDbPrefix.php
maintenance/renamewiki.php
maintenance/runBatchedQuery.php
maintenance/sql.php
maintenance/sqlite.php
maintenance/updateSearchIndex.php

index dcce8f4..1aba977 100644 (file)
@@ -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;
        }
 
index 54f84f9..cf1b262 100644 (file)
@@ -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;
        }
 
index ab7c0a8..332527b 100644 (file)
@@ -18,7 +18,7 @@ class CommandLineInc extends Maintenance {
                }
        }
 
-       protected function getDbType() {
+       public function getDbType() {
                global $wgUseNormalUser;
 
                return ( isset( $wgUseNormalUser ) && $wgUseNormalUser ) ?
index c7b7a0d..13236b6 100644 (file)
@@ -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;
        }
 
index 6071323..0aee36f 100644 (file)
@@ -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;
        }
 
index 03fa897..4521c6f 100644 (file)
@@ -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;
        }
 
index daf79fc..f73db50 100644 (file)
@@ -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;
        }
 
index 5751aea..36437be 100644 (file)
@@ -33,7 +33,7 @@ class RenameWiki extends Maintenance {
                $this->addArg( 'newdb', 'New DB name' );
        }
        
-       protected function getDbType() {
+       public function getDbType() {
                return Maintenance::DB_ADMIN;
        }
 
index 0a113cc..03c56aa 100644 (file)
@@ -50,7 +50,7 @@ class BatchedQueryRunner extends Maintenance {
                } while ( $affected > 0 );
        }
 
-       protected function getDbType() {
+       public function getDbType() {
                return Maintenance::DB_ADMIN;
        }
 }
index cceec00..fd4be19 100644 (file)
@@ -70,7 +70,7 @@ class MwSql extends Maintenance {
                }
        }
        
-       protected function getDbType() {
+       public function getDbType() {
                return Maintenance::DB_ADMIN;
        }
 }
index 5b856b4..8886fe7 100644 (file)
@@ -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;
        }
 
index 6bb290f..152ce1b 100644 (file)
@@ -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;
        }