remplacement logo CERFA par logo association ; ticket cba1436170
FossilOrigin-Name: 629e57908a411fe551d90efe1eb054ec4357c20d05f325bdc7fa0a0e24858598
This commit is contained in:
parent
3f077d0349
commit
944f819fec
6 changed files with 71 additions and 29 deletions
18
upgrade.php
Normal file
18
upgrade.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue