Fix after the comment
This commit is contained in:
parent
78b3067de3
commit
0f9fa09d3f
@ -667,10 +667,15 @@ if ($mode == 'common')
|
|||||||
// Version
|
// Version
|
||||||
print '<td class="center nowrap" width="120px">';
|
print '<td class="center nowrap" width="120px">';
|
||||||
print $versiontrans;
|
print $versiontrans;
|
||||||
|
if(!empty($conf->global->CHECKLASTVERSION_EXTERNALMODULE)){
|
||||||
|
require_once(DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php');
|
||||||
if (!empty($objMod->url_last_version)) {
|
if (!empty($objMod->url_last_version)) {
|
||||||
$newversion = file_get_contents($objMod->url_last_version);
|
$newversion = getURLContent($objMod->url_last_version);
|
||||||
if (version_compare($newversion, $versiontrans) > 0) {
|
if(isset($newversion['content'])){
|
||||||
print " <span class='butAction' title='" . $langs->trans('LastStableVersion') . "'>$newversion</span>";
|
if (version_compare($newversion['content'], $versiontrans) > 0) {
|
||||||
|
print " <span class='butAction' title='" . $langs->trans('LastStableVersion') . "'>".$newversion['content']."</span>";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user