Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Commits
3cfcfdac
Commit
3cfcfdac
authored
17 years ago
by
Gábor Hojtsy
Browse files
Options
Downloads
Patches
Plain Diff
#211403
by dww: Removed fallback code for determining the project based on the directory.
parent
af9b327e
No related branches found
Branches containing commit
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/update/update.compare.inc
+5
-13
5 additions, 13 deletions
modules/update/update.compare.inc
with
5 additions
and
13 deletions
modules/update/update.compare.inc
+
5
−
13
View file @
3cfcfdac
...
@@ -49,6 +49,11 @@ function _update_process_info_list(&$projects, &$list, $project_type) {
...
@@ -49,6 +49,11 @@ function _update_process_info_list(&$projects, &$list, $project_type) {
$file
->
info
[
'project'
]
=
update_get_project_name
(
$file
);
$file
->
info
[
'project'
]
=
update_get_project_name
(
$file
);
}
}
// If we still don't know the 'project', give up.
if
(
empty
(
$file
->
info
[
'project'
]))
{
continue
;
}
// If we don't already know it, grab the change time on the .info file
// If we don't already know it, grab the change time on the .info file
// itself. Note: we need to use the ctime, not the mtime (modification
// itself. Note: we need to use the ctime, not the mtime (modification
// time) since many (all?) tar implementations will go out of their way to
// time) since many (all?) tar implementations will go out of their way to
...
@@ -99,19 +104,6 @@ function update_get_project_name($file) {
...
@@ -99,19 +104,6 @@ function update_get_project_name($file) {
// so we must hard-code a list here.
// so we must hard-code a list here.
$project_name
=
'drupal'
;
$project_name
=
'drupal'
;
}
}
else
{
// This isn't part of core, so guess the project from the directory.
$last
=
''
;
foreach
(
array_reverse
(
explode
(
'/'
,
$file
->
filename
))
as
$dir
)
{
if
(
$dir
==
'modules'
||
$dir
==
'themes'
)
{
break
;
}
$last
=
$dir
;
}
if
(
$last
)
{
$project_name
=
$last
;
}
}
return
$project_name
;
return
$project_name
;
}
}
...
...
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