Commit 92bd9b46 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixing serveURL for review apps

parent b2bf8e10
......@@ -160,6 +160,15 @@ class Overture extends Searchengine
$affil_data = 'ip=' . $this->ip;
$affil_data .= '&ua=' . $this->useragent;
$affilDataValue = $this->urlEncode($affil_data);
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);
}
# 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