Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3421017
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3421017
Commits
6da81e1f
Commit
6da81e1f
authored
17 years ago
by
Gábor Hojtsy
Browse files
Options
Downloads
Patches
Plain Diff
#171951
by dvessel: fix account specific theme selection form
parent
9c2f47ea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/theme.inc
+1
-1
1 addition, 1 deletion
includes/theme.inc
modules/system/system.module
+1
-1
1 addition, 1 deletion
modules/system/system.module
with
2 additions
and
2 deletions
includes/theme.inc
+
1
−
1
View file @
6da81e1f
...
...
@@ -41,7 +41,7 @@ function init_theme() {
// Only select the user selected theme if it is available in the
// list of enabled themes.
$theme
=
!
empty
(
$user
->
theme
)
&&
$themes
[
$user
->
theme
]
->
status
?
$user
->
theme
:
variable_get
(
'theme_default'
,
'garland'
);
$theme
=
!
empty
(
$user
->
theme
)
&&
!
empty
(
$themes
[
$user
->
theme
]
->
status
)
?
$user
->
theme
:
variable_get
(
'theme_default'
,
'garland'
);
// Allow modules to override the present theme... only select custom theme
// if it is available in the list of installed themes.
...
...
This diff is collapsed.
Click to expand it.
modules/system/system.module
+
1
−
1
View file @
6da81e1f
...
...
@@ -527,7 +527,7 @@ function system_admin_theme_submit($form, &$form_state) {
* @return
* a form array
*/
function
system_theme_select_form
(
&
$form_state
,
$description
=
''
,
$default_value
=
''
,
$weight
=
0
)
{
function
system_theme_select_form
(
$description
=
''
,
$default_value
=
''
,
$weight
=
0
)
{
if
(
user_access
(
'select different theme'
))
{
$enabled
=
array
();
$themes
=
list_themes
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment