recusfiscaux/upgrade.php
engel 6ba58c621c correction petit oubli upgrade.php
FossilOrigin-Name: efb9c630582804a571607b2a441206c4551aae6a4f4d80fb65ac2a88a739aa9d
2023-02-06 17:37:12 +00:00

20 lines
459 B
PHP

<?php
namespace Garradin;
use Garradin\Entities\Files\File;
$old_version = $plugin->getInfos('version');
if (version_compare($old_version, '0.9', '<'))
{
$configNum = new \stdClass();
$configNum->prefixe = "";
$configNum->annee = false;
$configNum->membre = false;
$configNum->sequentiel = false;
$configNum->valeur_init = 1;
$plugin->setConfig('numerotation', $configNum);
$plugin->setConfig('imprimerCourriel', false);
}