[geeklog-cvs] geeklog: Replace autotags in search results (bug #0000887)

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Thu Jun 11 10:32:10 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/8048812c2dfb
changeset: 7099:8048812c2dfb
user:      Dirk Haun <dirk at haun-online.de>
date:      Thu Jun 11 15:16:08 2009 +0200
description:
Replace autotags in search results (bug #0000887)

diffstat:

 public_html/docs/history        |  1 +
 system/classes/search.class.php |  2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 9920c449e20a -r 8048812c2dfb public_html/docs/history
--- a/public_html/docs/history	Thu Jun 11 14:10:30 2009 +0200
+++ b/public_html/docs/history	Thu Jun 11 15:16:08 2009 +0200
@@ -11,6 +11,7 @@
 + Comment moderation and editable comments, by Jared Wenerd
 
 Changes since 1.6.0b2:
+- Replace autotags in search results (bug #0000887) [Dirk]
 - Don't insist on an email adress when editing a Remote User (bug #0000885)
   [Dirk]
 - Added a config option to send an X-FRAME-OPTIONS HTTP header to prevent
diff -r 9920c449e20a -r 8048812c2dfb system/classes/search.class.php
--- a/system/classes/search.class.php	Thu Jun 11 14:10:30 2009 +0200
+++ b/system/classes/search.class.php	Thu Jun 11 15:16:08 2009 +0200
@@ -754,7 +754,7 @@
             $row['title'] = COM_createLink($row['title'], $row['url']);
 
             if ($row['description'] != '<i>' . $LANG09[70] . '</i>') {
-                $row['description'] = stripslashes($this->_shortenText($this->_query, $row['description'], $this->_wordlength));
+                $row['description'] = stripslashes($this->_shortenText($this->_query, PLG_replaceTags($row['description']), $this->_wordlength));
             }
 
             if ($row['date'] != 'LF_NULL') {



More information about the geeklog-cvs mailing list