Changeset 3600 for trunk/template


Ignore:
Timestamp:
Jul 16, 2009, 7:20:34 AM (15 years ago)
Author:
rvelices
Message:
  • 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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/comment_list.tpl

    r3487 r3600  
    1111    </div>
    1212    {/if}
    13     <div class="description" style="height:{if ($comment.IN_EDIT==1)}200{/if}px">
     13    <div class="description" style="height:{if isset($comment.IN_EDIT)}200{/if}px">
    1414      {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) }
    1515      <ul class="actions" style="float:right">
     
    2121        </li>
    2222        {/if}
    23         {if isset($comment.U_EDIT) and ($comment.IN_EDIT!=1)}
     23        {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
    2424        <li>
    2525          <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}">
     
    3838      {/if}
    3939      <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
    40       {if ($comment.IN_EDIT==1)}
     40      {if isset($comment.IN_EDIT)}
    4141      <a name="edit_comment"></a>
    4242      <form  method="post" action="{$comment.U_EDIT}" class="filter" id="editComment">
Note: See TracChangeset for help on using the changeset viewer.