From f695a1acd2359cc2e94846b828265e9b11fdd402 Mon Sep 17 00:00:00 2001 From: RainLoop Date: Thu, 21 Sep 2017 22:15:27 +0300 Subject: [PATCH] Disable application.ini autosaving (#1509) --- .../0.0.0/app/libraries/RainLoop/Actions.php | 38 +++++++++---------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/rainloop/v/0.0.0/app/libraries/RainLoop/Actions.php b/rainloop/v/0.0.0/app/libraries/RainLoop/Actions.php index 6c516e49f..c42ceefcd 100644 --- a/rainloop/v/0.0.0/app/libraries/RainLoop/Actions.php +++ b/rainloop/v/0.0.0/app/libraries/RainLoop/Actions.php @@ -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;