Commit 504f92c0 authored by acke's avatar acke

Fix for wrong username

parent cde2d5f5
......@@ -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' => $node->name, '!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' => $node->name, '!datetime' => $vars['created'], '@time' => format_date($comment->created, 'custom', 'H:i')));
$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')));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment