diff --git a/include/picture_comment.inc.php b/include/picture_comment.inc.php index b6680aaf8..b4ae4c996 100644 --- a/include/picture_comment.inc.php +++ b/include/picture_comment.inc.php @@ -240,17 +240,19 @@ SELECT if ($show_add_comment_form) { $key = get_ephemeral_key(3, $page['image_id']); - $content = ''; + $content = $author = ''; if ('reject'===@$comment_action) { $content = htmlspecialchars( stripslashes($comm['content']) ); + $author = htmlspecialchars( stripslashes($comm['author']) ); } $template->assign('comment_add', array( 'F_ACTION' => $url_self, 'KEY' => $key, 'CONTENT' => $content, - 'SHOW_AUTHOR' => !is_classic_user() + 'SHOW_AUTHOR' => !is_classic_user(), + 'AUTHOR' => $author , )); } } diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 1862fa35f..345d78b03 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -347,9 +347,9 @@ function togglePrivacyLevelBox()

{'Add a comment'|@translate}

{if $comment_add.SHOW_AUTHOR} -

-

-

+

+

+

{/if}