Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
9385794e
Commit
9385794e
authored
Jan 04, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#41548
by Neil: critical bugfix: theme didn't load when styles are used.
parent
3dae9587
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
includes/theme.inc
includes/theme.inc
+1
-1
modules/system.module
modules/system.module
+1
-1
modules/system/system.module
modules/system/system.module
+1
-1
No files found.
includes/theme.inc
View file @
9385794e
...
...
@@ -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
;
...
...
modules/system.module
View file @
9385794e
...
...
@@ -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
);
...
...
modules/system/system.module
View file @
9385794e
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment