Dotclear


Ignore:
Timestamp:
12/29/17 15:08:35 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:
  • Add module id in () after module label in modules' list
  • cope with required textarea with CKEditor (still not perfect)
  • html::escapeHTML() is === with , so replace the first by the second
File:
1 edited

Legend:

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

    r3639 r3640  
    633633                    if (in_array('expander', $cols)) { 
    634634                         echo 
    635                          html::escapeHTML($module['name']); 
     635                         html::escapeHTML($module['name']).($id != $module['name'] ? sprintf(__(' (%s)'),$id) : ''); 
    636636                    } 
    637637                    else { 
    638638                         echo 
    639639                         '<label for="'.html::escapeHTML($this->list_id).'_modules_'.html::escapeHTML($id).'">'. 
    640                          html::escapeHTML($module['name']). 
     640                         html::escapeHTML($module['name']).($id != $module['name'] ? sprintf(__(' (%s)'),$id) : ''). 
    641641                         '</label>'; 
    642642                    } 
     
    644644               else { 
    645645                    echo 
    646                     html::escapeHTML($module['name']). 
     646                    html::escapeHTML($module['name']).($id != $module['name'] ? sprintf(__(' (%s)'),$id) : ''). 
    647647                    form::hidden(array('modules['.$count.']'), html::escapeHTML($id)); 
    648648               } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map