mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Errors/Logging
* log addNotes to DB as php user-errors * always skip the native php error handler
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user