From 3a865fd6879a0425528c50626050ea15e1d3862a Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Mon, 12 Oct 2020 13:40:59 +0200 Subject: [PATCH] javascript variable now set on load more --- app/MetaGer.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/MetaGer.php b/app/MetaGer.php index 47e5675bc..84dbfe058 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -325,6 +325,7 @@ class MetaGer $timings["prepareResults"]["started adgoal"] = microtime(true) - $timings["starttime"]; } } + if (!$this->javascript) { $this->adgoalLoaded = $this->parseAdgoal($this->results, $this->adgoalHash, true); if(!empty($timings)){ @@ -1016,6 +1017,10 @@ class MetaGer # Javascript option will be set by an asynchronious script we will check for it when we are fetching adgoal # Until then javascript parameter will be false $this->javascript = false; + if($request->filled("javascript") && is_bool($request->input("javascript"))){ + $this->javascript = boolval($request->input("javascript")); + $request->request->remove("javascript"); + } $this->jskey = $request->input('jskey', ''); $request->request->remove("jskey"); -- GitLab