diff --git a/gamutable_fonctions.php b/gamutable_fonctions.php index bb86894..4f3f966 100644 --- a/gamutable_fonctions.php +++ b/gamutable_fonctions.php @@ -118,3 +118,13 @@ function gamutable_recharger_tableau($id_objet = 9999999999, $num = null):string EOJS; return $html; } + +function gamutable_vider_localstorage():int { + $version_prod = (int) lire_config('gamutable/version_stockage', 1); + $version_demandee = (int) ($GLOBALS['gamutable_version_stockage'] ?? 1); + if ($version_demandee > $version_prod) { + ecrire_config('gamutable/version_stockage', $version_demandee); + return 1; + } + return 0; +} diff --git a/inclure/gamutable.html b/inclure/gamutable.html index 3c2c414..63a2b32 100644 --- a/inclure/gamutable.html +++ b/inclure/gamutable.html @@ -25,6 +25,9 @@ [(#ENV{fichierVueBloc}|oui) [(#SET{htmlvuebloc,#INCLURE{fond=#ENV{fichierVueBloc}}|replace{'"',"'"}})] ] + +#SET{vider_localstorage,#NULL|gamutable_vider_localstorage} +