From f3bc327be7be8a1aeeb49c7f46c86628e5d52e77 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 30 Jan 2020 04:13:14 +0100 Subject: multi edit can unset templates thumbnail favicon --- app/class/Controllerhome.php | 7 +++++++ app/view/templates/homemenu.php | 23 ++++++++++++++++------- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/app/class/Controllerhome.php b/app/class/Controllerhome.php index 02d6c9d..c7d1792 100644 --- a/app/class/Controllerhome.php +++ b/app/class/Controllerhome.php @@ -166,6 +166,13 @@ class Controllerhome extends Controllerpage $datas = array_filter($datas, function ($var) { return $var !== ""; }); + $datas = array_map(function ($value) { + if($value === "!") { + return ""; + } else { + return $value; + } + }, $datas); $reset = $_POST['reset'] ?? []; $addtag = $_POST['addtag'] ?? ''; $addauthor = $_POST['addauthor'] ?? ''; diff --git a/app/view/templates/homemenu.php b/app/view/templates/homemenu.php index e437a4e..83d2b90 100644 --- a/app/view/templates/homemenu.php +++ b/app/view/templates/homemenu.php @@ -69,7 +69,7 @@ Privacy
- + + ' . $favicon . ''; @@ -88,20 +89,24 @@
+ - +
+ Templates

+
+