From 7be4985b4d3ea89479d271dcd53e9a8cc76d4c33 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Fri, 11 Oct 2019 12:35:41 +0200 Subject: [PATCH] not using constant for quicktip url anymore --- app/Models/Quicktips/Quicktips.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/Quicktips/Quicktips.php b/app/Models/Quicktips/Quicktips.php index 2652581fe..0480bf36e 100644 --- a/app/Models/Quicktips/Quicktips.php +++ b/app/Models/Quicktips/Quicktips.php @@ -11,7 +11,7 @@ class Quicktips { use DispatchesJobs; - private $QUICKTIP_URL = "/1.1/quicktips.xml"; + private $quicktipUrl = "/1.1/quicktips.xml"; const QUICKTIP_NAME = "quicktips"; const CACHE_DURATION = 60; @@ -20,16 +20,16 @@ class Quicktips public function __construct($search, $locale, $max_time) { if (env("APP_ENV") === "production") { - $this->QUICKTIP_URL = "https://quicktips.metager.de" . $this->QUICKTIP_URL; + $this->quicktipUrl = "https://quicktips.metager.de" . $this->quicktipUrl; } else { - $this->QUICKTIP_URL = "https://dev.quicktips.metager.de" . $this->QUICKTIP_URL; + $this->quicktipUrl = "https://dev.quicktips.metager.de" . $this->quicktipUrl; } $this->startSearch($search, $locale, $max_time); } public function startSearch($search, $locale, $max_time) { - $url = self::QUICKTIP_URL . "?search=" . $this->normalize_search($search) . "&locale=" . $locale; + $url = $this->quicktipUrl . "?search=" . $this->normalize_search($search) . "&locale=" . $locale; # TODO anders weitergeben $this->hash = md5($url); -- GitLab