Commit f6aa62cd authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed serveURL for metager3.de test version

parent 92bd9b46
......@@ -161,14 +161,20 @@ class Overture extends Searchengine
$affil_data .= '&ua=' . $this->useragent;
$affilDataValue = $this->urlEncode($affil_data);
$serve_domain = "https://metager.de/";
if (LaravelLocalization::getCurrentLocale() === "en") {
$serve_domain = "https://metager.org/";
}
if (\preg_match("/https:\/\/.*\.review\.metager\.de\//", $url)) {
$serve_domain = "https://metager.de/";
if (LaravelLocalization::getCurrentLocale() === "en") {
$serve_domain = "https://metager.org/";
}
$url = \preg_replace("/https:\/\/.*\.review\.metager\.de\//", $serve_domain, $url);
}
if (\strpos($url, "https://metager3.de") === 0) {
$url = str_replace("https://metager3.de", $serve_domain, $url);
}
# Wir benötigen die ServeUrl:
$serveUrl = $this->urlEncode($url);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment