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
2ed1db9c
Commit
2ed1db9c
authored
May 22, 2017
by
Phil Höfer
Browse files
Update MetaGer.php
parent
bfee7671
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
2ed1db9c
...
...
@@ -209,9 +209,6 @@ class MetaGer
}
$this
->
results
=
$newResults
;
# Boost implementation
$this
->
results
=
$this
->
parseBoost
(
$this
->
results
);
#Adgoal Implementation
$this
->
results
=
$this
->
parseAdgoal
(
$this
->
results
);
...
...
@@ -390,22 +387,6 @@ class MetaGer
}
public
function
parseBoost
(
$results
)
{
foreach
(
$results
as
$result
)
{
if
(
preg_match
(
'/^(http[s]?\:\/\/)?(www.)?amazon\.de/'
,
$result
->
anzeigeLink
))
{
if
(
preg_match
(
'/\?/'
,
$result
->
anzeigeLink
))
{
$result
->
link
.
=
'&tag=boostmg01-21'
;
}
else
{
$result
->
link
.
=
'?tag=boostmg01-21'
;
}
$result
->
partnershop
=
true
;
}
}
return
$results
;
}
public
function
parseAdgoal
(
$results
)
{
$publicKey
=
getenv
(
'adgoal_public'
);
...
...
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