- Patch #45785 by Markus: Not enabled themes shouldn't appear in admin/themes/settings.

4.7.x
Dries Buytaert 2006-02-01 14:14:04 +00:00
parent 514bef01f0
commit 71955d8c8a
2 changed files with 10 additions and 6 deletions

View File

@ -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:

View File

@ -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: