diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-02-01 14:14:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-02-01 14:14:04 +0000 |
commit | 71955d8c8a6d666ea40aabb8d580343f61ad8789 (patch) | |
tree | 3ce13a03325772aca698a786bc778ecc66411ac6 /modules/system | |
parent | 514bef01f02a83c814bcb72c177bccc1c90995dc (diff) | |
download | brdo-71955d8c8a6d666ea40aabb8d580343f61ad8789.tar.gz brdo-71955d8c8a6d666ea40aabb8d580343f61ad8789.tar.bz2 |
- Patch #45785 by Markus: Not enabled themes shouldn't appear in admin/themes/settings.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.module | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 879233696..9e0939b25 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -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: |