- Patch #45785 by Markus: Not enabled themes shouldn't appear in admin/themes/settings.
parent
514bef01f0
commit
71955d8c8a
|
@ -131,9 +131,11 @@ function system_menu($may_cache) {
|
|||
'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -1);
|
||||
|
||||
foreach (list_themes() as $theme) {
|
||||
$items[] = array('path' => 'admin/themes/settings/'. $theme->name, 'title' => $theme->name,
|
||||
'callback' => 'system_theme_settings', 'callback arguments' => array($theme->name), 'access' => $access,
|
||||
'type' => MENU_LOCAL_TASK);
|
||||
if ($theme->status) {
|
||||
$items[] = array('path' => 'admin/themes/settings/'. $theme->name, 'title' => $theme->name,
|
||||
'callback' => 'system_theme_settings', 'callback arguments' => array($theme->name), 'access' => $access,
|
||||
'type' => MENU_LOCAL_TASK);
|
||||
}
|
||||
}
|
||||
|
||||
// Modules:
|
||||
|
|
|
@ -131,9 +131,11 @@ function system_menu($may_cache) {
|
|||
'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -1);
|
||||
|
||||
foreach (list_themes() as $theme) {
|
||||
$items[] = array('path' => 'admin/themes/settings/'. $theme->name, 'title' => $theme->name,
|
||||
'callback' => 'system_theme_settings', 'callback arguments' => array($theme->name), 'access' => $access,
|
||||
'type' => MENU_LOCAL_TASK);
|
||||
if ($theme->status) {
|
||||
$items[] = array('path' => 'admin/themes/settings/'. $theme->name, 'title' => $theme->name,
|
||||
'callback' => 'system_theme_settings', 'callback arguments' => array($theme->name), 'access' => $access,
|
||||
'type' => MENU_LOCAL_TASK);
|
||||
}
|
||||
}
|
||||
|
||||
// Modules:
|
||||
|
|
Loading…
Reference in New Issue