17 lines
378 B
PHP
17 lines
378 B
PHP
<?php
|
|
|
|
namespace Garradin;
|
|
|
|
$old_version = $plugin->getInfos('version');
|
|
|
|
if (version_compare($old_version, '0.6.2', '<'))
|
|
{
|
|
// changement de nom de la configuration des champs nom
|
|
$champsNom = $plugin->getConfig('nomChamps');
|
|
if (null !== $champsNom)
|
|
{
|
|
$plugin->setConfig('champsNom', $champsNom);
|
|
$plugin->setConfig('nomChamps', null);
|
|
}
|
|
}
|