Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
f92aedb9
Commit
f92aedb9
authored
Jan 22, 2021
by
Dominik Hebeler
Browse files
applying partnershop if one would be removed by duplicate check
parent
d9f48a19
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
f92aedb9
...
...
@@ -408,10 +408,20 @@ class MetaGer
if
(
isset
(
$arr
[
$link
]))
{
$arr
[
$link
]
->
gefVon
[]
=
$this
->
results
[
$i
]
->
gefVon
[
0
];
$arr
[
$link
]
->
gefVonLink
[]
=
$this
->
results
[
$i
]
->
gefVonLink
[
0
];
// The duplicate might already be an adgoal partnershop
if
(
$this
->
results
[
$i
]
->
partnershop
){
# Den Link hinzufügen:
$arr
[
$link
]
->
logo
=
$this
->
results
[
$i
]
->
logo
;
$arr
[
$link
]
->
image
=
$this
->
results
[
$i
]
->
image
;
$arr
[
$link
]
->
link
=
$this
->
results
[
$i
]
->
link
;
$arr
[
$link
]
->
partnershop
=
$this
->
results
[
$i
]
->
partnershop
;
}
array_splice
(
$this
->
results
,
$i
,
1
);
$i
--
;
if
(
$arr
[
$link
]
->
new
===
true
||
$this
->
results
[
$i
]
->
new
===
true
)
{
$arr
[
$link
]
->
changed
=
true
;
$arr
[
$link
]
->
changed
=
true
;
}
}
else
{
$arr
[
$link
]
=
&
$this
->
results
[
$i
];
...
...
Write
Preview
Supports
Markdown
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