on ajoute des valeurs par defauts, cela represente 99% de notre

utilisation
This commit is contained in:
Christophe 2022-02-02 08:48:31 +01:00
parent c33b0b58e6
commit 1bf6df1186
2 changed files with 13 additions and 1 deletions

View file

@ -5,6 +5,18 @@ if (!defined('_ECRIRE_INC_VERSION')){
function inc_bigform_verifier_dist($options = [], &$erreurs){
$options_defauts = [
'mime' => 'tout_mime',
'dimension_max' => [
'largeur' => 20000,
'hauteur' => 20000,
]
];
if (is_array($options)) {
$options = array_merge($options_defauts, $options);
} else {
$options = $options_defauts;
}
$er = [];
$verifier = charger_fonction('verifier', 'inc/');

View file

@ -1,7 +1,7 @@
<paquet
prefix="bigform"
categorie="edition"
version="1.1.7"
version="1.1.8"
etat="dev"
compatibilite="[3.2.5;4.0.*]"
logo="prive/themes/spip/images/bigform-64.png"