Dotclear

Changeset 476:2d7f174b2fbc


Ignore:
Timestamp:
07/01/11 21:09:30 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Message:

Action par défaut = delete si on affiche une liste des commentaires filtrés sur les indésirables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/comments.php

    r270 r476  
    108108# Actions combo box 
    109109$combo_action = array(); 
     110$default = ''; 
    110111if ($core->auth->check('publish,contentadmin',$core->blog->id)) 
    111112{ 
     
    118119{ 
    119120     $combo_action[__('delete')] = 'delete'; 
     121     if ($status == -2) { 
     122          $default = 'delete'; 
     123     } 
    120124} 
    121125 
     
    214218      
    215219     '<p class="col right"><label for="action" class="classic">'.__('Selected comments action:').'</label> '. 
    216      form::combo('action',$combo_action,'','','','','title="'.__('action: ').'"'). 
     220     form::combo('action',$combo_action,$default,'','','','title="'.__('action: ').'"'). 
    217221     $core->formNonce(). 
    218222     '<input type="submit" value="'.__('ok').'" /></p>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map