Skip to content
Snippets Groups Projects
Commit c61b0f8f authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed an issue with db_connector

parent 9b9857ca
Branches
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ class Config {
}
public static function createFromGlobals() {
if (isset(db_connector))
if (null !== db_connector)
return new Config(path_prefix, db_connector, db_user, db_pass);
else
return new Config(path_prefix, 'pgsql:host=' . db_host . ';port=' . db_port . ';dbname=' . db_name . '', db_user, db_pass);
......
......@@ -3,8 +3,8 @@ define('db_host', 'example.com');
define('db_port', 5432);
define('db_name', 'quassel');
//Only use this if you know what you are doing
//define('db_connector', '');
//Only change this if you know what you are doing
define('db_connector', null);
define('db_user', 'quassel');
define('db_pass', 'password');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment