mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Another attempt to make session for Sharing, even though we're on the command line
This commit is contained in:
parent
7e51edf39d
commit
759df4cf6e
@ -405,7 +405,7 @@ class SharingBase extends LoggedInTest
|
||||
}
|
||||
|
||||
// Create share
|
||||
$this->shares[] = $share = Sharing::create($path, $mode, $name, $recipients, $extra);
|
||||
$this->shares[] = $share = TestSharing::create($path, $mode, $name, $recipients, $extra);
|
||||
|
||||
return $share;
|
||||
}
|
||||
@ -578,7 +578,7 @@ class TestSharing extends Api\Sharing {
|
||||
{
|
||||
// Allow for testing
|
||||
$sessionid = 'CLI_TEST';
|
||||
$GLOBALS['egw']->session->session_id = $sessionid;
|
||||
$GLOBALS['egw']->session->sessionid = $sessionid;
|
||||
}
|
||||
return $sessionid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user