Same as r78533, but 5 lines down
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 17 Dec 2010 15:43:16 +0000 (15:43 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 17 Dec 2010 15:43:16 +0000 (15:43 +0000)
includes/db/Database.php

index 5b6254a..24596eb 100644 (file)
@@ -2414,12 +2414,8 @@ abstract class DatabaseBase implements DatabaseType {
                        $error = $this->sourceStream( $fp, $lineCallback, $resultCallback, $fname );
                }
                catch ( MWException $e ) {
-                       if ( defined( "MEDIAWIKI_INSTALL" ) ) {
-                               $error = $e->getMessage();
-                       } else {
-                               fclose( $fp );
-                               throw $e;
-                       }
+                       fclose( $fp );
+                       throw $e;
                }
 
                fclose( $fp );