Change wrong DSN name for db wrapper and update config class
This commit changes how the config class gets it's values to a more solid way. Additonally, the DSN was updated to use a correct format, allowing PDO to connect (With a wrong DSN, it tries to connect to something that doesn't exist).
This commit is contained in:
@@ -8,10 +8,9 @@ class Config
|
||||
public function __construct()
|
||||
{
|
||||
$ROOT = $_SERVER['DOCUMENT_ROOT'];
|
||||
$config = $ROOT . "/source/config.php";
|
||||
$config = $ROOT . "/source/config.ini";
|
||||
|
||||
$c = include($config);
|
||||
$this->config = $c;
|
||||
$this->config = parse_ini_file($config, true);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user