fix 2 PHP Fatal error:

- Class 'EGroupware\Api\etemplate' not found in api/src/Contacts.php on line 1527
- Undefined constant 'EGroupware\Api\SessionEGW_SESSION_VAR' in api/src/Storage/Tracking.php on line 409
This commit is contained in:
Ralf Becker 2016-03-07 09:59:12 +00:00
parent 5ce7394105
commit fca25726c9
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ namespace EGroupware\Api;
// explicitly reference classes still in phpgwapi
use categories;
use etemplate; // cats2color
use calendar_bo; // to_do: do NOT require it, just use if there

View File

@ -406,7 +406,7 @@ abstract class Tracking
if ($GLOBALS['egw_info']['server']['log_user_agent_action'] && ($changed_fields || !$old))
{
$this->historylog->add('user_agent_action', $data[$this->id_field],
$_SERVER['HTTP_USER_AGENT'], $_SESSION[Api\SessionEGW_SESSION_VAR]['session_action']);
$_SERVER['HTTP_USER_AGENT'], $_SESSION[Api\Session::EGW_SESSION_VAR]['session_action']);
}
foreach($changed_fields as $name)
{