Dotclear


Ignore:
Timestamp:
07/31/12 15:15:32 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
sexy
Message:

sexy step 3 : no more media.

File:
1 edited

Legend:

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

    r851 r852  
    100100          } 
    101101           
    102           $attach = ''; 
    103           $nb_media = $this->rs->countMedia(); 
    104           if ($nb_media > 0) { 
    105                $attach_str = $nb_media == 1 ? __('%d attachment') : __('%d attachments'); 
    106                $attach = sprintf($img,sprintf($attach_str,$nb_media),'attach.png'); 
    107           } 
    108102           
    109103          $res = '<tr class="line'.($this->rs->post_status != 1 ? ' offline' : '').'"'. 
     
    117111          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. 
    118112          '<td class="nowrap">'.$this->rs->user_id.'</td>'. 
    119           '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.' '.$attach.'</td>'. 
     113          '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.'</td>'. 
    120114          '</tr>'; 
    121115           
     
    196190          } 
    197191           
    198           $attach = ''; 
    199           $nb_media = $this->rs->countMedia(); 
    200           if ($nb_media > 0) { 
    201                $attach_str = $nb_media == 1 ? __('%d attachment') : __('%d attachments'); 
    202                $attach = sprintf($img,sprintf($attach_str,$nb_media),'attach.png'); 
    203           } 
    204192           
    205193          $res = '<tr class="line'.($this->rs->post_status != 1 ? ' offline' : '').'"'. 
     
    212200          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. 
    213201          '<td class="nowrap">'.$this->rs->user_id.'</td>'. 
    214           '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.' '.$attach.'</td>'. 
     202          '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.'</td>'. 
    215203          '</tr>'; 
    216204           
Note: See TracChangeset for help on using the changeset viewer.

Sites map