Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dar-otechestvu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Open-source
dar-otechestvu
Commits
bd595219
Commit
bd595219
authored
Apr 24, 2023
by
Namzhilma Zhambalova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drupal 10 patch notices
parent
a4f6a49c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Condition.php
core/lib/Drupal/Core/Config/Entity/Query/Condition.php
+1
-1
RequestPath.php
core/modules/system/src/Plugin/Condition/RequestPath.php
+1
-1
No files found.
core/lib/Drupal/Core/Config/Entity/Query/Condition.php
View file @
bd595219
...
...
@@ -30,7 +30,7 @@ class Condition extends ConditionBase {
}
// Process the value for operator that use it.
if
(
!
in_array
(
$condition
[
'operator'
],
[
'IS NULL'
,
'IS NOT NULL'
],
TRUE
))
{
if
(
isset
(
$condition
[
'value'
])
&&
!
in_array
(
$condition
[
'operator'
],
[
'IS NULL'
,
'IS NOT NULL'
],
TRUE
))
{
// Lowercase condition value(s) for case-insensitive matches.
if
(
is_array
(
$condition
[
'value'
]))
{
$condition
[
'value'
]
=
array_map
(
'mb_strtolower'
,
$condition
[
'value'
]);
...
...
core/modules/system/src/Plugin/Condition/RequestPath.php
View file @
bd595219
...
...
@@ -141,7 +141,7 @@ class RequestPath extends ConditionPluginBase implements ContainerFactoryPluginI
public
function
evaluate
()
{
// Convert path to lowercase. This allows comparison of the same path
// with different case. Ex: /Page, /page, /PAGE.
$pages
=
mb_strtolower
(
$this
->
configuration
[
'pages'
])
;
$pages
=
$this
->
configuration
[
'pages'
]
?
mb_strtolower
(
$this
->
configuration
[
'pages'
])
:
''
;
if
(
!
$pages
)
{
return
TRUE
;
}
...
...
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