mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 18:31:26 +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
|
// 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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user