From 8ab117a62f5cb9b284405d200d3c71e5c90e9fd7 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Sun, 18 Apr 2021 20:40:34 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/core/modules/DolibarrModules.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index c1f03b9c989..6c7a062b0a1 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -2275,7 +2275,6 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it } if ($this->isCoreOrExternalModule() == 'external' || preg_match('/development|experimental|deprecated/i', $version)) { - $versionTitle = $langs->trans("Version").' '.$this->getVersion(1); if ($this->needUpdate) { $versionTitle.= '
'.$langs->trans('ModuleUpdateAvailable').' : '.$this->lastVersion; @@ -2318,7 +2317,8 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it * * @return int <0 if Error, 0 == no update needed, >0 if need update */ - public function checkForUpdate(){ + public function checkForUpdate() + { require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php'; if (!empty($this->url_last_version)) { $lastVersion = getURLContent($this->url_last_version, 'GET', '', 1, array(), array('http', 'https'), 0); // Accept http or https links on external remote server only