Dotclear


Ignore:
Timestamp:
09/16/13 13:28:17 (12 years ago)
Author:
Dsls
Branch:
actionsreloaded
Children:
1999:a0ed28c2da5a, 2037:cdcd97549428
Message:

RIP admin/comments_actions.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.pager.php

    r1670 r1905  
    257257               $pager->html_next = $this->html_next; 
    258258               $pager->var_page = 'page'; 
    259                 
     259               $comments = array(); 
     260               if (isset($_REQUEST['comments'])) { 
     261                    foreach ($_REQUEST['comments'] as $v) { 
     262                         $comments[(integer)$v]=true; 
     263                    } 
     264               }               
    260265               $html_block = 
    261266               '<table><caption class="hidden">'.__('Comments and trackbacks list').'</caption><tr>'. 
     
    279284               while ($this->rs->fetch()) 
    280285               { 
    281                     echo $this->commentLine(); 
     286                    echo $this->commentLine(isset($comments[$this->rs->comment_id])); 
    282287               } 
    283288                
     
    288293     } 
    289294      
    290      private function commentLine() 
     295     private function commentLine($checked) 
    291296     { 
    292297          global $author, $status, $sortby, $order, $nb_per_page; 
     
    336341          $res .= 
    337342          '<td class="nowrap">'. 
    338           form::checkbox(array('comments[]'),$this->rs->comment_id,'','','',0).'</td>'. 
     343          form::checkbox(array('comments[]'),$this->rs->comment_id,$checked,'','',0).'</td>'. 
    339344          '<td class="nowrap" abbr="'.__('Type and author').'" scope="raw">'. 
    340345               '<a href="'.$comment_url.'" title="'.$comment_title.'">'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map