- Patch #41548 by Neil: critical bugfix: theme didn't load when styles are used.

4.7.x
Dries Buytaert 2006-01-04 09:32:28 +00:00
parent 3dae958731
commit 9385794e23
3 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ function list_themes($refresh = FALSE) {
if (!$list) {
$list = array();
$result = db_query("SELECT * FROM {system} WHERE type = 'theme' AND status = 1");
$result = db_query("SELECT * FROM {system} WHERE type = 'theme'");
while ($theme = db_fetch_object($result)) {
if (file_exists($theme->filename)) {
$list[$theme->name] = $theme;

View File

@ -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);

View File

@ -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);