Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0fe57fe6
Commit
0fe57fe6
authored
Nov 14, 2005
by
Dries
Browse files
- Patch
#36333
by Tobias Maier: make sure to enable the default theme.
parent
46fee741
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/system.module
View file @
0fe57fe6
...
...
@@ -826,7 +826,8 @@ function system_themes_execute($form_id, $values) {
if
(
$_POST
[
'op'
]
==
t
(
'Save configuration'
))
{
if
(
is_array
(
$values
[
'status'
]))
{
foreach
(
$values
[
'status'
]
as
$key
=>
$choice
)
{
if
(
$choice
)
{
// Always enable the default theme, despite its status checkbox being checked:
if
(
$choice
||
$values
[
'theme_default'
]
==
$key
)
{
// If theme status is being set to 1 from 0, initialize block data for this theme if necessary.
if
(
db_num_rows
(
db_query
(
"SELECT status FROM
{
system
}
WHERE type = 'theme' AND name = '%s' AND status = 0"
,
$key
)))
{
system_initialize_theme_blocks
(
$key
);
...
...
modules/system/system.module
View file @
0fe57fe6
...
...
@@ -826,7 +826,8 @@ function system_themes_execute($form_id, $values) {
if
(
$_POST
[
'op'
]
==
t
(
'Save configuration'
))
{
if
(
is_array
(
$values
[
'status'
]))
{
foreach
(
$values
[
'status'
]
as
$key
=>
$choice
)
{
if
(
$choice
)
{
// Always enable the default theme, despite its status checkbox being checked:
if
(
$choice
||
$values
[
'theme_default'
]
==
$key
)
{
// If theme status is being set to 1 from 0, initialize block data for this theme if necessary.
if
(
db_num_rows
(
db_query
(
"SELECT status FROM
{
system
}
WHERE type = 'theme' AND name = '%s' AND status = 0"
,
$key
)))
{
system_initialize_theme_blocks
(
$key
);
...
...
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