r15089 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r15088‎ | r15089 | r15090 >
Date:14:16, 27 June 2006
Author:greg
Status:old
Tags:
Comment:
Move database checks toconfig/index.php
Modified paths:
  • /trunk/phase3/install-utils.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/install-utils.inc
@@ -15,20 +15,6 @@
1616 die( -1 );
1717 }
1818
19 - $gotdatabase = 0;
20 - ## XXX We should quiet the warnings thrown here
21 - if (extension_loaded('mysql') or dl('mysql.so')) {
22 - $gotdatabase = 'mysql';
23 - }
24 - else if (extension_loaded('pgsql') or dl('pgsql.so')) {
25 - $gotdatabase = 'pg';
26 - }
27 - if (!$gotdatabase) {
28 - print "Could not load the MySQL or the PostgreSQL driver! Please compile ".
29 - "php with either --with-mysql or --with-pgsql, or install the mysql.so or pg.so module.\n";
30 - exit;
31 - }
32 -
3319 global $wgCommandLineMode;
3420 $wgCommandLineMode = true;
3521 umask( 000 );