Dotclear


Ignore:
Timestamp:
08/01/12 10:59:38 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
sexy
Message:

sexy step 4 : wysiwyg no more.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/plugins.php

    r500 r854  
    236236     foreach ($p_available as $k => $v) 
    237237     { 
     238 
    238239          $is_deletable = $is_writable && preg_match('!^'.$p_path_pat.'!',$v['root']); 
    239240          $is_deactivable = $v['root_writable']; 
     
    244245          '<td class="minimal">'.html::escapeHTML($v['version']).'</td>'. 
    245246          '<td class="maximal"><strong>'.html::escapeHTML($v['name']).'</strong> '. 
    246           '<br />'.html::escapeHTML($v['desc']).'</td>'. 
     247          '<br />'.html::escapeHTML($v['desc']); 
     248          echo '</td>'. 
    247249          '<td class="nowrap action">'; 
    248250           
     
    281283     foreach ($p_disabled as $k => $v) 
    282284     { 
     285          $dep = $core->plugins->getUnmatchedDependencies($k); print_r($dep); 
     286          $invalid=(count($dep) > 0); 
     287 
    283288          $is_deletable = $is_writable && preg_match('!^'.$p_path_pat.'!',$v['root']); 
    284           $is_activable = $v['root_writable']; 
     289          $is_activable = !$invalid && $v['root_writable']; 
    285290           
    286291          echo 
    287           '<tr class="line wide">'. 
    288           '<td class="maximal nowrap"><strong>'.html::escapeHTML($k).'</strong></td>'. 
     292          '<tr class="line wide'.($invalid ? " error" : "").'">'. 
     293          '<td class="maximal nowrap"><strong>'.html::escapeHTML($k).'</strong>'; 
     294          if ($invalid) { 
     295               echo '<br /><span style="color:#c00"><strong>'.__('Unmet dependencies: ').'</strong>'. 
     296                    join(', ',$dep).'</span>'; 
     297          } 
     298          echo '</td>'; 
     299 
    289300          '<td class="nowrap action">'; 
    290301           
Note: See TracChangeset for help on using the changeset viewer.

Sites map