Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
open-source
MetaGer
Commits
7c431296
Commit
7c431296
authored
Sep 08, 2017
by
Dominik Hebeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update MetaGer.php
parent
f7359a25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/MetaGer.php
app/MetaGer.php
+3
-3
No files found.
app/MetaGer.php
View file @
7c431296
...
...
@@ -451,15 +451,15 @@ class MetaGer
$info
=
parse_url
(
$link
);
if
(
isset
(
$info
[
"host"
])){
$host
=
$info
[
'host'
];
$newurl
=
$link
;
if
(
strpos
(
$host
,
"amazon"
)
!==
FALSE
){
# This is Probably an Amazon Link. We'll add our tag as get parameter
if
(
isset
(
$info
[
"query"
])){
$
info
[
"query"
]
.
=
"&tag=metager04-21"
;
$
newurl
.
=
"&tag=metager04-21"
;
}
else
{
$
info
[
"query"
]
=
"tag=metager04-21"
;
$
newurl
.
=
"
?
tag=metager04-21"
;
}
}
$newurl
=
http_build_url
(
$info
);
$result
->
link
=
$newurl
;
$result
->
partnershop
=
true
;
}
...
...
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