From 4f9a0544218341204bee98d41bcc097dc61f1799 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Mon, 10 Feb 2020 11:42:17 +0100 Subject: add case sensitivity option in dsb *deep search bar --- app/class/Controllerhome.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/class/Controllerhome.php') diff --git a/app/class/Controllerhome.php b/app/class/Controllerhome.php index 2fa06fb..5a9110a 100644 --- a/app/class/Controllerhome.php +++ b/app/class/Controllerhome.php @@ -32,12 +32,13 @@ class Controllerhome extends Controllerpage $vars['colors'] = new Colors($this->opt->taglist()); if (!isset($_GET['search'])) { - $searchopt = ['title' => 1, 'description' => 1, 'content' => 1, 'other' => 0]; + $searchopt = ['title' => 1, 'description' => 1, 'content' => 1, 'other' => 0, 'casesensitive' => 0]; } else { $searchopt['title'] = $_GET['title'] ?? 0; $searchopt['description'] = $_GET['description'] ?? 0; $searchopt['content'] = $_GET['content'] ?? 0; $searchopt['other'] = $_GET['other'] ?? 0; + $searchopt['casesensitive'] = $_GET['case'] ?? 0; } $regex = $_GET['search'] ?? ''; -- cgit v1.2.3