From 5d21b9b8f321980dd6c7fbf01556c86aacc19f55 Mon Sep 17 00:00:00 2001 From: tofulm Date: Tue, 9 Mar 2021 18:50:25 +0100 Subject: [PATCH] ajout une option de config pour activer le retaillage des images --- bigform_pipelines.php | 1 + formulaires/configurer_bigform.html | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/bigform_pipelines.php b/bigform_pipelines.php index 7d87890..a7211f8 100644 --- a/bigform_pipelines.php +++ b/bigform_pipelines.php @@ -31,6 +31,7 @@ function bigform_post_edition($flux){ and $id_document = intval($flux['args']['id_objet']) and $flux['args']['action'] === 'ajouter_document' and in_array($flux['data']['extension'], ['jpg', 'png', 'webm']) + and lire_config('bigform/retailler_image') === 'oui' ) { $url = generer_url_public("retailler_img", [ "id_document" =>intval($id_document), diff --git a/formulaires/configurer_bigform.html b/formulaires/configurer_bigform.html index 9170cb7..615c84e 100644 --- a/formulaires/configurer_bigform.html +++ b/formulaires/configurer_bigform.html @@ -9,6 +9,22 @@
#ACTION_FORMULAIRE +
+ #SET{name,retailler_image} + #SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}} +
+ +
+ + +
+
+ + +
+
+
+