Another attempt to make session for Sharing, even though we're on the command line

This commit is contained in:
nathangray 2019-04-24 15:07:45 -06:00
parent 7e51edf39d
commit 759df4cf6e

View File

@ -405,7 +405,7 @@ class SharingBase extends LoggedInTest
} }
// Create share // Create share
$this->shares[] = $share = Sharing::create($path, $mode, $name, $recipients, $extra); $this->shares[] = $share = TestSharing::create($path, $mode, $name, $recipients, $extra);
return $share; return $share;
} }
@ -578,7 +578,7 @@ class TestSharing extends Api\Sharing {
{ {
// Allow for testing // Allow for testing
$sessionid = 'CLI_TEST'; $sessionid = 'CLI_TEST';
$GLOBALS['egw']->session->session_id = $sessionid; $GLOBALS['egw']->session->sessionid = $sessionid;
} }
return $sessionid; return $sessionid;
} }