Dotclear


Ignore:
Timestamp:
09/01/16 14:30:15 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Do not display settings URLs if module is disabled, add a URL for the plugin main page if exists (index.php)

File:
1 edited

Legend:

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

    r3333 r3335  
    754754 
    755755                    $config = !empty($module['root']) && file_exists(path::real($module['root'].'/_config.php')); 
    756  
    757                     if ($config || !empty($module['section']) || !empty($module['tags']) || !empty($module['settings'])) { 
     756                    $index = !empty($module['root']) && file_exists(path::real($module['root'].'/index.php')); 
     757 
     758                    if ($config || $index || !empty($module['section']) || !empty($module['tags']) || !empty($module['settings'])) { 
    758759                         echo 
    759760                         '<div><ul class="mod-more">'; 
    760761 
     762                         if ($index && $module['enabled']) { 
     763                              echo '<li><a href="'.$this->core->adminurl->get('admin.plugin.'.$id).'">'.__('Manage plugin').'</a></li>'; 
     764                         } 
     765 
    761766                         $settings = $this->getSettingsUrls($this->core,$id); 
    762                          if (!empty($settings)) { 
     767                         if (!empty($settings) && $module['enabled']) { 
    763768                              echo '<li>'.implode(' - ',$settings).'</li>'; 
    764769                         } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map