Forgot to indent this correctly...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 22 Aug 2010 11:59:32 +0000 (11:59 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 22 Aug 2010 11:59:32 +0000 (11:59 +0000)
includes/installer/DatabaseUpdater.php

index 4ceeaab..dae896a 100644 (file)
@@ -230,13 +230,13 @@ abstract class DatabaseUpdater {
         * @param $fullpath Boolean Whether to treat $patch path as a relative or not
         */
        function dropField( $table, $field, $patch, $fullpath = false ) {
-       if ( $this->db->fieldExists( $table, $field ) ) {
-               wfOut( "Table $table contains $field field. Dropping... " );
-               $this->applyPatch( $patch, $fullpath );
-               wfOut( "ok\n" );
-       } else {
-               wfOut( "...$table table does not contain $field field.\n" );
-       }
+               if ( $this->db->fieldExists( $table, $field ) ) {
+                       wfOut( "Table $table contains $field field. Dropping... " );
+                       $this->applyPatch( $patch, $fullpath );
+                       wfOut( "ok\n" );
+               } else {
+                       wfOut( "...$table table does not contain $field field.\n" );
+               }
        }
 }