forked from ZwiiCMS-Team/ZwiiCampus
13004 checknewversion
This commit is contained in:
parent
81b8f32b52
commit
bcf01dc8fa
@ -366,14 +366,15 @@ class helper
|
|||||||
public static function checkNewVersion($channel)
|
public static function checkNewVersion($channel)
|
||||||
{
|
{
|
||||||
$version = helper::getOnlineVersion($channel);
|
$version = helper::getOnlineVersion($channel);
|
||||||
|
$update = false;
|
||||||
if (!empty($version)) {
|
if (!empty($version)) {
|
||||||
return ((version_compare(common::ZWII_VERSION, $version)) === -1);
|
$update = version_compare(common::ZWII_VERSION, $version) === -1;
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
return $update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Génère des variations d'une couleur
|
* Génère des variations d'une couleur
|
||||||
* @param string $rgba Code rgba de la couleur
|
* @param string $rgba Code rgba de la couleur
|
||||||
|
Loading…
Reference in New Issue
Block a user