Changeset 854:893c8fc07a74 for admin/plugins.php
- Timestamp:
- 08/01/12 10:59:38 (13 years ago)
- Branch:
- sexy
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/plugins.php
r500 r854 236 236 foreach ($p_available as $k => $v) 237 237 { 238 238 239 $is_deletable = $is_writable && preg_match('!^'.$p_path_pat.'!',$v['root']); 239 240 $is_deactivable = $v['root_writable']; … … 244 245 '<td class="minimal">'.html::escapeHTML($v['version']).'</td>'. 245 246 '<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>'. 247 249 '<td class="nowrap action">'; 248 250 … … 281 283 foreach ($p_disabled as $k => $v) 282 284 { 285 $dep = $core->plugins->getUnmatchedDependencies($k); print_r($dep); 286 $invalid=(count($dep) > 0); 287 283 288 $is_deletable = $is_writable && preg_match('!^'.$p_path_pat.'!',$v['root']); 284 $is_activable = $v['root_writable'];289 $is_activable = !$invalid && $v['root_writable']; 285 290 286 291 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 289 300 '<td class="nowrap action">'; 290 301
Note: See TracChangeset
for help on using the changeset viewer.