mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 15:07:02 +03:00
Resolve #287
This commit is contained in:
parent
443c3c199e
commit
050815dd7e
6 changed files with 11 additions and 15 deletions
|
|
@ -9,7 +9,7 @@ class DemoStorage extends \RainLoop\Providers\Storage\FileStorage
|
|||
/**
|
||||
* @param \RainLoop\Model\Account|string|null $mAccount
|
||||
*/
|
||||
public function GenerateFilePath($mAccount, int $iStorageType, bool $bMkDir = false, bool $bForDeleteAction = false) : string
|
||||
public function GenerateFilePath($mAccount, int $iStorageType, bool $bMkDir = false) : string
|
||||
{
|
||||
$sEmail = '';
|
||||
if ($mAccount instanceof \RainLoop\Model\MainAccount) {
|
||||
|
|
@ -18,7 +18,7 @@ class DemoStorage extends \RainLoop\Providers\Storage\FileStorage
|
|||
$sEmail = $mAccount;
|
||||
}
|
||||
if ($sEmail != $this->sDemoEmail) {
|
||||
return parent::GenerateFilePath($mAccount, $iStorageType, $bMkDir, $bForDeleteAction);
|
||||
return parent::GenerateFilePath($mAccount, $iStorageType, $bMkDir);
|
||||
}
|
||||
|
||||
$sDataPath = "{$this->sDataPath}/demo";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue