diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index 02077646983..6c6a755ae55 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -2274,7 +2274,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; @@ -2317,7 +2316,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