Various incomplete code fixes and newlines.
This commit is contained in:
parent
c2a9cf5ee8
commit
ba9cfce1a9
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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'));
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue