From 834c798c3f822a785c9191589e054eeace3dede9 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 13 Jun 2005 09:15:07 +0000 Subject: [PATCH] removed double title git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@690 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions_helpviewer.inc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/functions_helpviewer.inc b/include/functions_helpviewer.inc index 3738f8f0d..9c122f8b1 100644 --- a/include/functions_helpviewer.inc +++ b/include/functions_helpviewer.inc @@ -312,8 +312,13 @@ function createResultEntry($entry,$res,$name,$max) $percentage = (int)(($res['hits']['overall'] / $max) * 100) ; $color = dechex($percentage+150); $color2 = dechex(150 - $percentage); + + $entry['content'] = preg_replace("\"".$entry['headline']."\"","",$entry['content'],1); + if(strlen($color)==1) $color = "0".$color; + + /* the object tag is needed for W3c */ $str = " @@ -322,9 +327,9 @@ function createResultEntry($entry,$res,$name,$max) ".$entry['headline']." -".htmlentities( substr(strip_tags($entry['content']),0,120))."... - -
-
+ +
+
-- 2.30.2