Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Issue forks
automatic_updates-3242724
Commits
ce362355
Commit
ce362355
authored
Jul 08, 2019
by
heddn
Committed by
heddn
Jul 08, 2019
Browse files
Issue
#3065465
by heddn: Modified code doesn't check core correctly
parent
77939597
Changes
1
Hide whitespace changes
Inline
Side-by-side
ReadinessCheckers/ModifiedFiles.php
View file @
ce362355
...
...
@@ -34,7 +34,13 @@ class ModifiedFiles implements ReadinessCheckerInterface {
*/
protected
static
function
getInfos
()
{
$extensions
=
drupal_system_listing
(
'/^'
.
DRUPAL_PHP_FUNCTION_PATTERN
.
'\.info$/'
,
'modules'
,
$key
=
'name'
,
$min_depth
=
1
);
return
array_merge
(
$extensions
,
drupal_system_listing
(
'/^'
.
DRUPAL_PHP_FUNCTION_PATTERN
.
'\.info$/'
,
'themes'
,
$key
=
'name'
,
$min_depth
=
1
));
$infos
=
array_merge
(
$extensions
,
drupal_system_listing
(
'/^'
.
DRUPAL_PHP_FUNCTION_PATTERN
.
'\.info$/'
,
'themes'
,
$key
=
'name'
,
$min_depth
=
1
));
$system
=
$infos
[
'system'
];
$infos
=
array_filter
(
$infos
,
function
(
$info
)
{
return
substr
(
$info
->
uri
,
0
,
7
)
!==
"modules"
&&
substr
(
$info
->
uri
,
0
,
6
)
!==
"themes"
;
});
$infos
[
'drupal'
]
=
$system
;
return
$infos
;
}
}
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