Dotclear

Changeset 2064:43a191ddc184


Ignore:
Timestamp:
09/24/13 16:21:46 (12 years ago)
Author:
Dsls
Branch:
default
Message:

keep comments ids in mind

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r2063 r2064  
    832832     '<th>'.__('Edit').'</th>'. 
    833833     '</tr>'; 
     834     $comments = array(); 
     835     if (isset($_REQUEST['comments'])) { 
     836          foreach ($_REQUEST['comments'] as $v) { 
     837               $comments[(integer)$v]=true; 
     838          } 
     839     }               
    834840      
    835841     while($rs->fetch()) 
     
    858864           
    859865          '<td class="nowrap">'. 
    860           ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.($tb ? __('select this trackback') : __('select this comment')).'"') : '').'</td>'. 
     866          ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,isset($comments[$rs->comment_id]),'','',0,'title="'.($tb ? __('select this trackback') : __('select this comment')).'"') : '').'</td>'. 
    861867          '<td class="maximal">'.html::escapeHTML($rs->comment_author).'</td>'. 
    862868          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map