mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 06:27:02 +03:00
Improved demo mode plugin
This commit is contained in:
parent
2f97d4bafb
commit
70f9f0bd76
4 changed files with 14 additions and 52 deletions
|
|
@ -86,7 +86,7 @@ class DemoAccountPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
*/
|
||||
public function MainFabrica($sName, &$oDriver)
|
||||
{
|
||||
if (('storage' === $sName || 'storage-local' === $sName) && \function_exists('apcu_store')) {
|
||||
if ('storage' === $sName || 'storage-local' === $sName) {
|
||||
$oAccount = $this->Manager()->Actions()->GetAccount();
|
||||
if ($this->isDemoAccount($oAccount)) {
|
||||
require_once __DIR__ . '/storage.php';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue