diff --git a/system/database/autoload.php b/system/database/autoload.php index 856272f..97c3ac3 100644 --- a/system/database/autoload.php +++ b/system/database/autoload.php @@ -62,8 +62,7 @@ final class Database { try { $this->driver = $driverObject; } catch (Exception $th) { - throw new Exception('Error: Could not load database file ' . $driver . '!'); - //exit('Error: Could not load database file ' . $driver . '!'); + throw new Exception('Error: Could not create the driver!'); } } diff --git a/system/engine/interfaces/databases.php b/system/engine/interfaces/databases.php index b4caa2c..1a41e9c 100644 --- a/system/engine/interfaces/databases.php +++ b/system/engine/interfaces/databases.php @@ -29,7 +29,7 @@ * Execute the SQL Query. * * @param string $sql - * @return stdClass|true + * @return \stdClass|true * @throws Exception */ public function query($sql); diff --git a/system/system.php b/system/system.php index b5540de..fc92e1c 100644 --- a/system/system.php +++ b/system/system.php @@ -386,6 +386,7 @@ $engine->request = new Request(); $response->addHeader('Content-Type: text/html; charset=utf-8'); $response->setCompression($engine->config->get('config_compression')); */ $engine->response = new Response(); +$engine->response->addHeader('Content-Type: text/html; charset=utf-8'); if($engine->config->get('config_compression')) $engine->response->setCompression($engine->config->get('config_compression'));