diff --git a/resources/classes/config.php b/resources/classes/config.php index f82b787ccb..b9961e02cd 100644 --- a/resources/classes/config.php +++ b/resources/classes/config.php @@ -1,10 +1,10 @@ find(); - if ($this->exists) { - include($this->path); - $this->db_type = $db_type; - $this->db_name = $db_name; - $this->db_username = $db_username; - $this->db_password = $db_password; - $this->db_host = $db_host; - $this->db_path = $db_path; - $this->db_port = $db_port; - } + $this->find(); + if ($this->exists) { + include($this->path); + $this->db_type = $db_type; + $this->db_name = $db_name; + $this->db_username = $db_username; + $this->db_password = $db_password; + $this->db_host = $db_host; + $this->db_path = $db_path; + $this->db_port = $db_port; } } /** - * determine if the config.php exists + * Find the path to the config.php * @var string $config_path - full path to the config.php file */ public function find() {