[geeklog-cvs] geeklog: Use COM_getDisplayName and COM_getTextContent in the li...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Fri Sep 11 11:54:45 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/7a9baf0e966a
changeset: 7307:7a9baf0e966a
user: Dirk Haun <dirk at haun-online.de>
date: Fri Sep 11 16:48:28 2009 +0200
description:
Use COM_getDisplayName and COM_getTextContent in the list of comment submissions
diffstat:
system/lib-admin.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 182b74e229d7 -r 7a9baf0e966a system/lib-admin.php
--- a/system/lib-admin.php Fri Sep 11 16:30:21 2009 +0200
+++ b/system/lib-admin.php Fri Sep 11 16:48:28 2009 +0200
@@ -1134,8 +1134,7 @@
$name = htmlspecialchars(COM_stripslashes(DB_getItem($_TABLES['commentsubmissions'], 'name', "cid = '{$A['id']}'")));
}
if (empty($name)) {
- $name = DB_getItem($_TABLES['users'], 'username',
- "uid = '{$A['uid']}'");
+ $name = COM_getDisplayName($A['uid']);
}
if ($A['uid'] == 1) {
$retval = $name;
@@ -1162,7 +1161,8 @@
$info = PLG_getItemInfo($A['type'], $A['sid'], 'title,url');
if (empty($info) || empty($info[0]) || empty($info[1])) {
// if not available, display excerpt from the comment
- $retval = COM_truncate(strip_tags($A['comment']), 40, '...');
+ $retval = COM_truncate(COM_getTextContent($A['comment']),
+ 40, '...');
} else {
$retval = COM_createLink($info[0], $info[1]);
}
More information about the geeklog-cvs
mailing list