From 9385794e235c6e291a02540bdfe0ce6cd0367449 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 4 Jan 2006 09:32:28 +0000 Subject: - Patch #41548 by Neil: critical bugfix: theme didn't load when styles are used. --- modules/system/system.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index f8e5016ca..a61fd4dfd 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -167,7 +167,7 @@ function system_test() { function system_user($type, $edit, &$user, $category = NULL) { if ($type == 'form' && $category == 'account') { if (user_access('select different theme')) { - $themes = list_themes(); + $themes = array_filter(list_themes(), create_function('$theme', 'return $theme->status;')); if (count($themes) > 1) { ksort($themes); -- cgit v1.2.3