diff options
author | rvelices <rv-github@modusoptimus.com> | 2009-07-16 05:20:34 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2009-07-16 05:20:34 +0000 |
commit | e618e8b944bc734defa22619a8826a55067d5911 (patch) | |
tree | edbd1746ca7f98cd741f56485480dabf9c9111a7 /template/yoga | |
parent | c57fa7e7e3fce583eabab81b2857f95189969bd6 (diff) |
- fix php warning from comment_list.tpl
- author name is saved always in #comments (even for registered users) so that
- sql queries are simpler on the comments page (one less table in a big join)
- when a user is deleted, we can keep the username in the #comments (there might be still a bug that author_id is not updated when a user is deleted)
git-svn-id: http://piwigo.org/svn/trunk@3600 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga')
-rw-r--r-- | template/yoga/comment_list.tpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/template/yoga/comment_list.tpl b/template/yoga/comment_list.tpl index 5586c0f2a..fbb8ad7b0 100644 --- a/template/yoga/comment_list.tpl +++ b/template/yoga/comment_list.tpl @@ -10,7 +10,7 @@ </a> </div> {/if} - <div class="description" style="height:{if ($comment.IN_EDIT==1)}200{/if}px"> + <div class="description" style="height:{if isset($comment.IN_EDIT)}200{/if}px"> {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } <ul class="actions" style="float:right"> {if isset($comment.U_DELETE)} @@ -20,7 +20,7 @@ </a> </li> {/if} - {if isset($comment.U_EDIT) and ($comment.IN_EDIT!=1)} + {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} <li> <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/edit.png" class="button" alt="[edit]"> @@ -37,7 +37,7 @@ </ul> {/if} <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span> - {if ($comment.IN_EDIT==1)} + {if isset($comment.IN_EDIT)} <a name="edit_comment"></a> <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> <fieldset> |