load config.php sooner
This commit is contained in:
parent
d95855411d
commit
1e8e5adbbf
@ -222,8 +222,7 @@ class Database {
|
||||
* stored in config.php in the root shimmie folder
|
||||
*/
|
||||
public function Database() {
|
||||
if(is_readable("config.php")) {
|
||||
require_once "config.php";
|
||||
global $database_dsn;
|
||||
|
||||
if(substr($database_dsn, 0, 5) == "mysql") {
|
||||
$this->engine = new MySQL();
|
||||
@ -267,11 +266,6 @@ class Database {
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else {
|
||||
header("Location: install.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute an SQL query and return an ADODB resultset
|
||||
|
Loading…
x
Reference in New Issue
Block a user