From 58b923fc1862d5d96686221b295621bb8f03cc6a Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 17 Aug 2020 10:51:45 +0200 Subject: [PATCH] =?UTF-8?q?aper=C3=A7u=20sur=20deux=20lignes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/search/search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/search/search.php b/module/search/search.php index fd19d10f..2101ec4d 100755 --- a/module/search/search.php +++ b/module/search/search.php @@ -211,8 +211,8 @@ class search extends common { $nboccu .= count($matches[0]); foreach ($matches[0] as $key => $value) { // Mise en évidence - $d = $value[1] -50 < 0 ? 1 : $value[1] - 50; - $t = substr($contenu,(int) $d ,150); + $d = $value[1] - 50 < 0 ? 1 : $value[1] - 50; + $t = substr($contenu,(int) $d ,200); // Nettoyage caractères invalides $t = preg_replace('/[^[:alnum:][:space:]]/u', '', $t); // Applique une mise en évidence