Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advagg
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
advagg
Merge requests
!45
Exclude admin/config from being disabled to avoid requirements error
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Exclude admin/config from being disabled to avoid requirements error
issue/advagg-3490248:3490248-disabling-on-admin
into
7.x-2.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Open
alexp999
requested to merge
issue/advagg-3490248:3490248-disabling-on-admin
into
7.x-2.x
6 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#3490248
0
0
Merge request reports
Compare
7.x-2.x
7.x-2.x (HEAD)
and
latest version
latest version
abf0812f
1 commit,
6 months ago
1 file
+
2
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
advagg.module
+
2
−
0
Options
@@ -3311,6 +3311,7 @@ function advagg_enabled() {
// Disable advagg if on admin page and configured to do so.
// AND theme is admin theme
// AND NOT /admin/reports/status
// AND NOT /admin/config
// AND NOT /admin/config/development/performance/.
// AND NOT /admin/appearance/settings/*.
// AND NOT /admin/config/development/performance/advagg/*.
@@ -3318,6 +3319,7 @@ function advagg_enabled() {
&&
$GLOBALS
[
'theme'
]
===
$admin_theme
&&
path_is_admin
(
$current_path
)
&&
!
(
$arg
[
1
]
===
'reports'
&&
$arg
[
2
]
===
'status'
)
&&
!
(
$arg
[
1
]
===
'config'
&&
empty
(
$arg
[
2
]))
&&
!
(
$arg
[
2
]
===
'development'
&&
$arg
[
3
]
===
'performance'
&&
empty
(
$arg
[
4
]))
&&
!
(
$arg
[
1
]
===
'appearance'
&&
$arg
[
2
]
===
'settings'
&&
!
empty
(
$arg
[
3
]))
&&
stripos
(
$current_path
,
$config_path
.
'/advagg'
)
!==
0
Loading