* log errors instead showing them to users with system directories

* now it will print a notice, and aditionally log full path into
system/logs/error.log
* also, when it fails to load config.lua it will output error also to
error.log
* fix when $_SERVER['HTTP_ACCEPT_ENCODING'] is not set.
This commit is contained in:
slawkens1
2017-08-28 23:58:53 +02:00
parent 2cd9f80b34
commit 3a6a1c448a
5 changed files with 23 additions and 9 deletions

View File

@@ -644,7 +644,8 @@ class OTS_Player extends OTS_Row_DAO
if($tmp)
return $tmp;
echo 'error while loading group..';
return new OTS_Group();
// echo 'error while loading group..';
/*
$_id = $this->data['group_id'];
$tmpGroup = new OTS_Group;