Fixed issues where the database is not properly loaded.

This commit is contained in:
Abel Hoogeveen 2015-07-28 12:06:40 +02:00
parent ebd81b9fce
commit 4f0f3e74d5
2 changed files with 4 additions and 1 deletions

View File

@ -66,6 +66,9 @@ class Main extends Module {
}
public function getPrefix() {
if (!$this->is_active()) {
$this->connect();
}
return $this->prefix;
}

View File

@ -55,7 +55,7 @@ class Model extends Bus {
public function query($query, $binds = null){
if($this->config->database->debug)
$this->logger->log("Query: ".$query, "Database Model");
$this->logger->log("Manuel Query: ".$query, "Database Model");
try{