Regression fix: installer broken by changes to include system, exceptions, and access...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 7 Jun 2006 08:57:38 +0000 (08:57 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 7 Jun 2006 08:57:38 +0000 (08:57 +0000)
config/index.php
includes/AutoLoader.php

index 05b3eeb..b76bda1 100644 (file)
@@ -500,7 +500,6 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                }
                print "<li>Database type: {$conf->DBtype}</li>\n";
                $dbclass = 'Database'.ucfirst($conf->DBtype);
-               require_once("$dbclass.php");
                $wgDBtype = $conf->DBtype;
                $wgDBadminuser = "root";
                $wgDBadminpassword = $conf->RootPW;
@@ -550,7 +549,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                                $wgDBadminpassword = $db_pass;
                                echo( "success.</li>\n" );
                                $wgDatabase->ignoreErrors( true );
-                               $myver = mysql_get_server_info( $wgDatabase->mConn );
+                               $myver = $wgDatabase->getServerVersion();
                        } else {
                                # There were errors, report them and back out
                                $ok = false;
@@ -620,7 +619,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                        }
                        print "</li>\n";
 
-                       @$sel = mysql_select_db( $wgDBname, $wgDatabase->mConn );
+                       @$sel = $wgDatabase->selectDB( $wgDBname );
                        if( $sel ) {
                                print "<li>Database <tt>" . htmlspecialchars( $wgDBname ) . "</tt> exists</li>\n";
                        } else {
@@ -1424,15 +1423,6 @@ function locate_executable($loc, $names, $versioninfo = false) {
        return false;
 }
 
-function get_db_version() {
-       global $wgDatabase, $conf;
-       if ($conf->DBtype == 'mysql')
-               return mysql_get_server_info( $wgDatabase->mConn );
-       else if ($conf->DBtype == 'oracle')
-               return oci_server_version($wgDatabase->mConn);
-       else return 'unknown';
-}
-
 # Test a memcached server
 function testMemcachedServer( $server ) {
        $hostport = explode(":", $server);
index 62ef4a2..cd9d0cf 100644 (file)
@@ -45,6 +45,7 @@ function __autoload($class_name) {
                'WordLevelDiff' => 'DifferenceEngine.php',
                'TableDiffFormatter' => 'DifferenceEngine.php',
                'EditPage' => 'EditPage.php',
+               'MWException' => 'Exception.php',
                'Exif' => 'Exif.php',
                'FormatExif' => 'Exif.php',
                'WikiExporter' => 'Export.php',