[geeklog-cvs] geeklog: Display user friendly text instead of LF_NULL in search...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Jun 14 10:43:08 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/1eac383649c6
changeset: 7120:1eac383649c6
user: Sami Barakat
date: Sun Jun 14 15:42:23 2009 +0100
description:
Display user friendly text instead of LF_NULL in search results
diffstat:
system/classes/search.class.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 53deb21cc6b3 -r 1eac383649c6 system/classes/search.class.php
--- a/system/classes/search.class.php Sun Jun 14 15:29:08 2009 +0100
+++ b/system/classes/search.class.php Sun Jun 14 15:42:23 2009 +0100
@@ -753,7 +753,9 @@
$row['title'] = stripslashes(str_replace('$', '$', $row['title']));
$row['title'] = COM_createLink($row['title'], $row['url']);
- if ($row['description'] != '<i>' . $LANG09[70] . '</i>') {
+ if ($row['description'] == 'LF_NULL') {
+ $row['description'] = '<i>' . $LANG09[70] . '</i>';
+ } elseif ($row['description'] != '<i>' . $LANG09[70] . '</i>') {
$row['description'] = stripslashes($this->_shortenText($this->_query, PLG_replaceTags($row['description']), $this->_wordlength));
}
More information about the geeklog-cvs
mailing list