Changeset 15570
- Timestamp:
- Jun 5, 2012, 9:51:54 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/picture_comment.inc.php
r13865 r15570 241 241 { 242 242 $key = get_ephemeral_key(3, $page['image_id']); 243 $content = '';243 $content = $author = ''; 244 244 if ('reject'===@$comment_action) 245 245 { 246 246 $content = htmlspecialchars( stripslashes($comm['content']) ); 247 $author = htmlspecialchars( stripslashes($comm['author']) ); 247 248 } 248 249 $template->assign('comment_add', … … 251 252 'KEY' => $key, 252 253 'CONTENT' => $content, 253 'SHOW_AUTHOR' => !is_classic_user() 254 'SHOW_AUTHOR' => !is_classic_user(), 255 'AUTHOR' => $author , 254 256 )); 255 257 } -
trunk/themes/default/template/picture.tpl
r15551 r15570 348 348 <form method="post" action="{$comment_add.F_ACTION}" id="addComment"> 349 349 {if $comment_add.SHOW_AUTHOR} 350 <p><label >{'Author'|@translate} :</label></p>351 <p><input type="text" name="author" ></p>352 <p><label >{'Comment'|@translate} :</label></p>350 <p><label for="author">{'Author'|@translate} :</label></p> 351 <p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p> 352 <p><label for="contentid">{'Comment'|@translate} :</label></p> 353 353 {/if} 354 354 <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>
Note: See TracChangeset
for help on using the changeset viewer.