http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99515

Revision: 99515
Author:   wikinaut
Date:     2011-10-11 18:17:44 +0000 (Tue, 11 Oct 2011)
Log Message:
-----------
self-revert back to protected functions addIndex and dropIndex as suggested in 
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99510#c24137 

Modified Paths:
--------------
    trunk/phase3/includes/installer/DatabaseUpdater.php

Modified: trunk/phase3/includes/installer/DatabaseUpdater.php
===================================================================
--- trunk/phase3/includes/installer/DatabaseUpdater.php 2011-10-11 18:09:46 UTC 
(rev 99514)
+++ trunk/phase3/includes/installer/DatabaseUpdater.php 2011-10-11 18:17:44 UTC 
(rev 99515)
@@ -432,7 +432,7 @@
         * @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 @@
         * @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 );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to