Various incomplete code fixes and newlines.

This commit is contained in:
Abel Hoogeveen 2016-01-14 21:10:28 +01:00
parent c2a9cf5ee8
commit ba9cfce1a9
4 changed files with 9 additions and 1 deletions

View File

@ -276,7 +276,7 @@ class ConfigDatabaseORM extends ConfigORM {
try{
$stmnt = $this->dbh->prepare("SELECT * FROM ".$prefix."config WHERE `file` = ?");
$stmnt->execute(array($name));
}catch (PDOException $e){
} catch (PDOException $e){
throw new ConfigException('Could not execute SQL-query due PDO-exception '.$e->getMessage());
}

View File

@ -397,6 +397,7 @@ class Layout {
public static function loadTemplateEngines() {
if (!self::$engines_loaded) {
Events::fireEvent('layoutLoadEngineEvent');
// Load the engines provided in this file
self::registerEngine(new PHPEngine(), 'PHP', array('php'));
self::registerEngine(new SmartyEngine(), 'Smarty', array('tpl'));

View File

@ -117,6 +117,9 @@ class Logger {
self::logInfo(self::backtrace());
}
// And finally stop the Logging
self::stopLevel();
if (self::$debug == true || self::$print_to_screen) {
self::log("Parsing debug log");
echo self::logToScreen();

View File

@ -166,7 +166,11 @@ class Modules {
// Return a reference
return self::$modules[strtolower($cfg->module_name)] = &$CLASS;
}
} else {
throw new ModuleException("Invalid module found: '".$name."'", 1);
}
} else {
throw new ModuleException("Module not found: '".$name."'", 1);
}
}