summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-05-23 20:24:52 +0000
committerDries Buytaert <dries@buytaert.net>2005-05-23 20:24:52 +0000
commitfc1f1e94a542ed35b1c5d21e52bfd97d0f9fa910 (patch)
tree21f683e13e0b3081aa1227f5095a20f5ef8bb7a1 /themes
parent21274fbb94917593e784f8e1fffbea1ea2784e3c (diff)
downloadbrdo-fc1f1e94a542ed35b1c5d21e52bfd97d0f9fa910.tar.gz
brdo-fc1f1e94a542ed35b1c5d21e52bfd97d0f9fa910.tar.bz2
- Patch #23452 by berkes: moves the avatar settings to within the check for "user info" on a node tpe.
Diffstat (limited to 'themes')
-rw-r--r--themes/engines/phptemplate/phptemplate.engine2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine
index 1da7422bc..11561716f 100644
--- a/themes/engines/phptemplate/phptemplate.engine
+++ b/themes/engines/phptemplate/phptemplate.engine
@@ -195,7 +195,6 @@ function phptemplate_node($node, $main = 0, $page = 0) {
'name' => format_name($node),
'date' => format_date($node->created),
'sticky' => $node->sticky,
- 'picture' => theme_get_setting('toggle_node_user_picture') ? theme('user_picture', $node) : '',
'content' => ($main && $node->teaser) ? $node->teaser : $node->body,
'links' => $node->links ? theme('links', $node->links) : '',
'mission' => $mission,
@@ -211,6 +210,7 @@ function phptemplate_node($node, $main = 0, $page = 0) {
// Display info only on certain node types.
if (theme_get_setting('toggle_node_info_' . $node->type)) {
$variables['submitted'] = t('Submitted by %a on %b.', array('%a' => format_name($node), '%b' => format_date($node->created)));
+ $variables['picture'] = theme_get_setting('toggle_node_user_picture') ? theme('user_picture', $node) : '';
}
return _phptemplate_callback('node', $variables, 'node-' . $node->type);