mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
Disable application.ini autosaving (#1509)
This commit is contained in:
parent
76f28b354b
commit
f695a1acd2
|
@ -213,30 +213,26 @@ class Actions
|
|||
if (null === $this->oConfig)
|
||||
{
|
||||
$this->oConfig = new \RainLoop\Config\Application();
|
||||
|
||||
$bSave = defined('APP_INSTALLED_START');
|
||||
|
||||
$bLoaded = $this->oConfig->Load();
|
||||
if (!$bLoaded && !$bSave)
|
||||
if (!$this->oConfig->Load())
|
||||
{
|
||||
usleep(10000); // TODO
|
||||
$bLoaded = $this->oConfig->Load();
|
||||
usleep(10000);
|
||||
$this->oConfig->Load();
|
||||
}
|
||||
|
||||
if (!$bLoaded && !$this->oConfig->IsFileExists())
|
||||
{
|
||||
$bSave = true;
|
||||
}
|
||||
|
||||
if ($bLoaded && !$bSave)
|
||||
{
|
||||
$bSave = APP_VERSION !== $this->oConfig->Get('version', 'current');
|
||||
}
|
||||
|
||||
if ($bSave)
|
||||
{
|
||||
$this->oConfig->Save();
|
||||
}
|
||||
// if (!$bLoaded && !$this->oConfig->IsFileExists())
|
||||
// {
|
||||
// $bSave = true;
|
||||
// }
|
||||
//
|
||||
// if ($bLoaded && !$bSave)
|
||||
// {
|
||||
// $bSave = APP_VERSION !== $this->oConfig->Get('version', 'current');
|
||||
// }
|
||||
//
|
||||
// if ($bSave)
|
||||
// {
|
||||
// $this->oConfig->Save();
|
||||
// }
|
||||
}
|
||||
|
||||
return $this->oConfig;
|
||||
|
|
Loading…
Reference in a new issue