From: Greg Sabino Mullane Date: Tue, 27 Jun 2006 14:16:21 +0000 (+0000) Subject: Move database checks toconfig/index.php X-Git-Tag: 1.31.0-rc.0~56578 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=50aee7755af5e1c2680a45d927b72ffd18abd068;p=lhc%2Fweb%2Fwiklou.git Move database checks toconfig/index.php --- diff --git a/install-utils.inc b/install-utils.inc index 235baaa0e2..0ba6eca6bb 100644 --- a/install-utils.inc +++ b/install-utils.inc @@ -15,20 +15,6 @@ function install_version_checks() { die( -1 ); } - $gotdatabase = 0; - ## XXX We should quiet the warnings thrown here - if (extension_loaded('mysql') or dl('mysql.so')) { - $gotdatabase = 'mysql'; - } - else if (extension_loaded('pgsql') or dl('pgsql.so')) { - $gotdatabase = 'pg'; - } - if (!$gotdatabase) { - print "Could not load the MySQL or the PostgreSQL driver! Please compile ". - "php with either --with-mysql or --with-pgsql, or install the mysql.so or pg.so module.\n"; - exit; - } - global $wgCommandLineMode; $wgCommandLineMode = true; umask( 000 );