Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
customerror
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
customerror
Commits
d87b1875
Commit
d87b1875
authored
10 years ago
by
Jeff Schuler
Committed by
Gisle Hannemyr
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2347825
by Jeff Schuler: Changed order of conditionals to minimize...
Issue
#2347825
by Jeff Schuler: Changed order of conditionals to minimize problem with custom theme.
parent
ccb69740
Branches
Branches containing commit
Tags
7.x-1.3
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.txt
+5
-5
5 additions, 5 deletions
README.txt
customerror.module
+3
-3
3 additions, 3 deletions
customerror.module
with
8 additions
and
8 deletions
README.txt
+
5
−
5
View file @
d87b1875
...
...
@@ -74,11 +74,11 @@ INSTALLATION
- Go to Configuration -> System -> Custom error
- Enter any title and description you want for the 404 (not found)
and 403 (access denied) pages.
-
The S
et theme to be used on the error pages. The first
option
(System default) lets the system set the theme. Each of
the
remaining options lets you set an explicit theme to be used
on
error pages (but it will not override the administration
theme,
if set).
-
You may also s
et theme to be used on the error pages. The first
option
(System default) lets the system set the theme. Each of
the
remaining options lets you set an explicit theme to be used
on
error pages (but it will not override the administration
theme,
if set).
- You can use any HTML tags to format the text.
Click on Save configuration.
...
...
This diff is collapsed.
Click to expand it.
customerror.module
+
3
−
3
View file @
d87b1875
...
...
@@ -362,13 +362,13 @@ function customerror_form_search_theme_form_alter(&$form, &$form_state, $form_id
*/
function
customerror_custom_theme
()
{
if
(
drupal_valid_path
(
current_path
()))
{
return
;
}
$theme
=
variable_get
(
'customerror_theme'
,
0
);
if
(
!
$theme
)
{
return
;
}
if
(
drupal_valid_path
(
current_path
()))
{
return
;
}
return
$theme
;
}
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