diff --git a/garradin_plugin.ini b/garradin_plugin.ini index b4cd152..54b7007 100644 --- a/garradin_plugin.ini +++ b/garradin_plugin.ini @@ -2,7 +2,7 @@ nom="Facturation" description="Permet d'éditer des factures, devis et reçus à ses membres ainsi qu'à une base de clients supplémentaire." auteur="zou" url="https://gitlab.com/ramoloss/garradin-plugin-facturation/" -version="0.6.0" +version="0.6.1" menu=1 config=1 min_version="1.1.0" \ No newline at end of file diff --git a/install.php b/install.php index cf36a03..4b48c33 100644 --- a/install.php +++ b/install.php @@ -14,5 +14,5 @@ $plugin->setConfig('footer', "[EXEMPLE]\n". ); $plugin->setConfig('validate_cp', true); -$path = PLUGIN_ROOT.'/data/default_sign.png'; +$path = __DIR__.'/data/default_sign.png'; $png = (new File)->createAndStore('skel/plugin/facturation','sign.png', $path, null); \ No newline at end of file diff --git a/upgrade.php b/upgrade.php index 5b252c6..512acb8 100644 --- a/upgrade.php +++ b/upgrade.php @@ -138,7 +138,7 @@ EOT unset($contenu); } - $path = PLUGIN_ROOT.'/data/default_sign.png'; + $path = __DIR__.'/data/default_sign.png'; $png = (new File)->createAndStore('skel/plugin/facturation','sign.png', $path, null); } } \ No newline at end of file