summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Axelsson2012-04-14 13:58:03 (GMT)
committerMattias Axelsson2012-04-14 13:58:03 (GMT)
commite3cc0caa60a5605953d043a6354b7c3bc81f6886 (patch)
treed06fca1cb60e70483e560ee852fd3bdc325b0101
parent100aabb90f40ff23950dc24cabe31a5f84429a24 (diff)
Issue #1293760 by acke, wonglijie: Bug fix for displaying Real Name correct.
-rw-r--r--template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/template.php b/template.php
index 047c167..2254e1a 100644
--- a/template.php
+++ b/template.php
@@ -21,7 +21,7 @@ function simpleclean_preprocess_node(&$vars) {
if (variable_get('node_submitted_' . $node->type, TRUE)) {
$vars['display_submitted'] = TRUE;
- $vars['submitted'] = t('By @username on !datetime', array('@username' => $node->name, '!datetime' => $vars['date']));
+ $vars['submitted'] = t('By @username on !datetime', array('@username' => strip_tags(theme('username', array('account' => $node))), '!datetime' => $vars['date']));
$vars['user_picture'] = theme_get_setting('toggle_node_user_picture') ? theme('user_picture', array('account' => $node)) : '';
// Add a footer for post
@@ -58,7 +58,7 @@ function simpleclean_preprocess_comment(&$vars) {
$node = $vars['elements']['#node'];
$vars['created'] = format_date($comment->created, 'custom', 'd M Y');
$vars['changed'] = format_date($comment->changed, 'custom', 'd M Y');
- $vars['submitted'] = t('By @username on !datetime at about @time.', array('@username' => $comment->name, '!datetime' => $vars['created'], '@time' => format_date($comment->created, 'custom', 'H:i')));
+ $vars['submitted'] = t('By @username on !datetime at about @time.', array('@username' => strip_tags(theme('username', array('account' => $comment))), '!datetime' => $vars['created'], '@time' => format_date($comment->created, 'custom', 'H:i')));
}
/**