From fc1f1e94a542ed35b1c5d21e52bfd97d0f9fa910 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Mon, 23 May 2005 20:24:52 +0000 Subject: [PATCH] - Patch #23452 by berkes: moves the avatar settings to within the check for "user info" on a node tpe. --- themes/engines/phptemplate/phptemplate.engine | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine index 1da7422bc2c5..11561716fc6b 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); -- GitLab