From 9d9f2597bb310646ac14a96fbe4ac135678fb2f5 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Fri, 27 Nov 2015 19:48:22 -0700 Subject: [PATCH] Correct the variable name and add the additional code examples. --- resources/classes/config.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/resources/classes/config.php b/resources/classes/config.php index b9961e02cd..8396bf01e7 100644 --- a/resources/classes/config.php +++ b/resources/classes/config.php @@ -51,7 +51,7 @@ class config { public function get() { $this->find(); if ($this->exists) { - include($this->path); + require $this->config_path; $this->db_type = $db_type; $this->db_name = $db_name; $this->db_username = $db_username; @@ -105,6 +105,19 @@ $db_password = $config->db_password; $db_host = $config->db_host; $db_path = $config->db_path; $db_port = $config->db_port; +echo "config_path: ".$config_path."\n"; +if ($config_exists) { + echo "config_exists: true\n"; +} else { + echo "config_exists: false\n"; +} +echo "db_type: ".$db_type."\n"; +echo "db_name: ".$db_name."\n"; +echo "db_username: ".$db_username."\n"; +echo "db_password: ".$db_password."\n"; +echo "db_host: ".$db_host."\n"; +echo "db_path: ".$db_path."\n"; +echo "db_port: ".$db_port."\n"; */ ?> \ No newline at end of file