Errors/Logging

* log addNotes to DB as php user-errors
  * always skip the native php error handler
This commit is contained in:
Sarjuuk
2015-07-18 16:45:11 +02:00
parent 58a235e2e3
commit 998763be7b
11 changed files with 44 additions and 45 deletions

View File

@@ -49,7 +49,7 @@ class Lang
{
if (!isset(self::$$prop))
{
Util::addNote(U_GROUP_STAFF, 'Lang::__callStatic() - tried to use undefined property Lang::$'.$prop);
Util::logError('Lang - tried to use undefined property Lang::$'.$prop);
return null;
}
@@ -58,7 +58,7 @@ class Lang
{
if (!isset($var[$key]))
{
Util::addNote(U_GROUP_STAFF, 'Lang::__callStatic() - undefined key "'.$key.'" in property Lang::$'.$prop.'[\''.implode('\'][\'', $args).'\']');
Util::logError('Lang - undefined key "'.$key.'" in property Lang::$'.$prop.'[\''.implode('\'][\'', $args).'\']');
return null;
}
@@ -73,14 +73,14 @@ class Lang
if (!isset(self::$$prop))
{
Util::addNote(U_GROUP_STAFF, 'Lang::sort() - tried to use undefined property Lang::$'.$prop);
Util::logError('Lang::sort - tried to use undefined property Lang::$'.$prop);
return null;
}
$var = &self::$$prop;
if (!isset($var[$group]))
{
Util::addNote(U_GROUP_STAFF, 'Lang::sort() - tried to use undefined property Lang::$'.$prop.'[\''.$group.'\']');
Util::logError('Lang::sort - tried to use undefined property Lang::$'.$prop.'[\''.$group.'\']');
return null;
}