recusfiscaux/upgrade.php
engel 944f819fec remplacement logo CERFA par logo association ; ticket cba1436170
FossilOrigin-Name: 629e57908a411fe551d90efe1eb054ec4357c20d05f325bdc7fa0a0e24858598
2022-03-23 10:00:37 +00:00

19 lines
506 B
PHP

<?php
namespace Garradin;
use Garradin\Entities\Files\File;
$db = DB::getInstance();
$old_version = $plugin->getInfos('version');
if (version_compare($old_version, '0.6.0', '<'))
{
$path = __DIR__ . '/data/default_logo.png';
$default_logo_file = (new File)->createAndStore('skel/plugin/recusfiscaux',
'default_logo.png',
$path,
null);
}