From 1c79fd803db22e5c4c18fa1c58dd62b4fbbfc067 Mon Sep 17 00:00:00 2001 From: Thomas Gries Date: Tue, 11 Oct 2011 18:17:44 +0000 Subject: [PATCH] self-revert back to protected functions addIndex and dropIndex as suggested in http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99510#c24137 --- includes/installer/DatabaseUpdater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index 896ee6b503..b8700dbf46 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -432,7 +432,7 @@ abstract class DatabaseUpdater { * @param $patch String Path to the patch file * @param $fullpath Boolean Whether to treat $patch path as a relative or not */ - public function addIndex( $table, $index, $patch, $fullpath = false ) { + protected function addIndex( $table, $index, $patch, $fullpath = false ) { if ( $this->db->indexExists( $table, $index ) ) { $this->output( "...$index key already set on $table table.\n" ); } else { @@ -468,7 +468,7 @@ abstract class DatabaseUpdater { * @param $patch String: Path to the patch file * @param $fullpath Boolean: Whether to treat $patch path as a relative or not */ - public function dropIndex( $table, $index, $patch, $fullpath = false ) { + protected function dropIndex( $table, $index, $patch, $fullpath = false ) { if ( $this->db->indexExists( $table, $index ) ) { $this->output( "Dropping $index from table $table... " ); $this->applyPatch( $patch, $fullpath ); -- 2.20.1