- Timestamp:
- Jun 5, 2012, 9:55:23 PM (12 years ago)
- Location:
- branches/2.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/include/picture_comment.inc.php
r11839 r15571 234 234 { 235 235 $key = get_ephemeral_key(3, $page['image_id']); 236 $content = '';236 $content = $author = ''; 237 237 if ('reject'===@$comment_action) 238 238 { 239 239 $content = htmlspecialchars( stripslashes($comm['content']) ); 240 $author = htmlspecialchars( stripslashes($comm['author']) ); 240 241 } 241 242 $template->assign('comment_add', … … 244 245 'KEY' => $key, 245 246 'CONTENT' => $content, 246 'SHOW_AUTHOR' => !is_classic_user() 247 'SHOW_AUTHOR' => !is_classic_user(), 248 'AUTHOR' => $author , 247 249 )); 248 250 } -
branches/2.3/themes/default/template/picture.tpl
r12480 r15571 307 307 <legend>{'Add a comment'|@translate}</legend> 308 308 {if $comment_add.SHOW_AUTHOR} 309 <label>{'Author'|@translate}<input type="text" name="author" ></label>309 <label>{'Author'|@translate}<input type="text" name="author" value="{$comment_add.AUTHOR}"></label> 310 310 {/if} 311 311 <label>{'Comment'|@translate}<textarea name="content" id="contentid" rows="5" cols="80">{$comment_add.CONTENT}</textarea></label>
Note: See TracChangeset
for help on using the changeset viewer.