Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
link
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
link
Merge requests
!7
Update link.migrate.inc
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update link.migrate.inc
issue/link-3399967:7.x-1.x
into
7.x-1.x
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
dqd
requested to merge
issue/link-3399967:7.x-1.x
into
7.x-1.x
7 months ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Compare
7.x-1.x
version 1
e3bacee5
7 months ago
7.x-1.x (base)
and
latest version
latest version
e3bacee5
1 commit,
7 months ago
version 1
e3bacee5
1 commit,
7 months ago
1 file
+
2
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
link.migrate.inc
+
2
−
2
Options
@@ -109,12 +109,12 @@ class MigrateLinkFieldHandler extends MigrateFieldHandler {
@@ -109,12 +109,12 @@ class MigrateLinkFieldHandler extends MigrateFieldHandler {
// found.
// found.
//
//
// First of all, determine the maximum delta from non-empty URLs.
// First of all, determine the maximum delta from non-empty URLs.
$max_delta
=
max
(
array_merge
(
array
(
0
),
array_keys
(
$values
)));
$max_delta
=
max
(
array_merge
(
array
(
0
),
array_map
(
'intval'
,
array_keys
(
$values
)))
)
;
// Next, determine the max delta from arguments.
// Next, determine the max delta from arguments.
foreach
(
$arguments
as
$key
=>
$value
)
{
foreach
(
$arguments
as
$key
=>
$value
)
{
if
(
is_array
(
$value
))
{
if
(
is_array
(
$value
))
{
$max_delta
=
max
(
$max_delta
,
max
(
array_keys
(
$value
)));
$max_delta
=
max
(
$max_delta
,
max
(
array_map
(
'intval'
,
array_keys
(
$value
)))
)
;
}
}
}
}
Loading