From f7a05e4bf63a48abb3cd1cf8c6f4d96bc324f132 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 24 Apr 2020 10:16:43 +0200 Subject: [PATCH] 070 raz config si indispo --- core/module/config/config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/module/config/config.php b/core/module/config/config.php index 99013069..2afc60a9 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -403,7 +403,9 @@ class config extends common { 'legalPageId' => $this->getInput('configLegalPageId'), 'metaDescription' => $this->getInput('configMetaDescription', helper::FILTER_STRING_LONG, true), 'title' => $this->getInput('configTitle', helper::FILTER_STRING_SHORT, true), - 'autoUpdate' => $this->getInput('configAutoUpdate', helper::FILTER_BOOLEAN), + 'autoUpdate' => helper::urlGetContents('http://zwiicms.com/update/' . common::ZWII_UPDATE_CHANNEL . '/version') === false + ? false + : $this->getInput('configAutoUpdate', helper::FILTER_BOOLEAN), 'proxyType' => $this->getInput('configProxyType'), 'proxyUrl' => $this->getInput('configProxyUrl'), 'proxyPort' => $this->getInput('configProxyPort',helper::FILTER_INT)