Use static to get token so children can override it

This commit is contained in:
nathangray 2017-06-27 15:37:34 -06:00
parent 1850c80c3f
commit ef6eb77991

View File

@ -159,8 +159,8 @@ class Sharing
{ {
self::$db = $GLOBALS['egw']->db; self::$db = $GLOBALS['egw']->db;
$token = self::get_token(); $token = static::get_token();
// are we called from header include, because session did not verify // are we called from header include, because session did not verify
// --> check if it verifys for our token // --> check if it verifys for our token
if ($token && !$keep_session) if ($token && !$keep_session)