on ajoute des valeurs par defauts, cela represente 99% de notre
utilisation
This commit is contained in:
parent
c33b0b58e6
commit
1bf6df1186
2 changed files with 13 additions and 1 deletions
|
@ -5,6 +5,18 @@ if (!defined('_ECRIRE_INC_VERSION')){
|
||||||
|
|
||||||
|
|
||||||
function inc_bigform_verifier_dist($options = [], &$erreurs){
|
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 = [];
|
$er = [];
|
||||||
$verifier = charger_fonction('verifier', 'inc/');
|
$verifier = charger_fonction('verifier', 'inc/');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<paquet
|
<paquet
|
||||||
prefix="bigform"
|
prefix="bigform"
|
||||||
categorie="edition"
|
categorie="edition"
|
||||||
version="1.1.7"
|
version="1.1.8"
|
||||||
etat="dev"
|
etat="dev"
|
||||||
compatibilite="[3.2.5;4.0.*]"
|
compatibilite="[3.2.5;4.0.*]"
|
||||||
logo="prive/themes/spip/images/bigform-64.png"
|
logo="prive/themes/spip/images/bigform-64.png"
|
||||||
|
|
Loading…
Add table
Reference in a new issue