From: Thomas Gries Date: Tue, 11 Oct 2011 18:17:44 +0000 (+0000) Subject: self-revert back to protected functions addIndex and dropIndex as suggested in http... X-Git-Tag: 1.31.0-rc.0~27143 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=1c79fd803db22e5c4c18fa1c58dd62b4fbbfc067;p=lhc%2Fweb%2Fwiklou.git self-revert back to protected functions addIndex and dropIndex as suggested in mediawiki.org/wiki/Special:Code/MediaWiki/99510#c24137 --- 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 );