Skip to content

Commit

Permalink
Adding query to extensions and search query additional tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaudry committed Nov 9, 2020
1 parent 01d724e commit 1ab2ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private function prepareQueries($tab)
$tmp = [];
foreach ($tab as $v)
{
$tmp = explode($v, "=");
$tmp = explode ("=", $v);
if(strpos($tmp[0], $this->config->get('plugins.' . $this->pname . '.search_queries.key')))
{
////https://w3id.org/xapi/dod-isd/verbs/found
Expand All @@ -226,7 +226,7 @@ private function prepareQueries($tab)
private function trackFromServer(RemoteLRS &$lrs = null) {
//track_as_extension: true
$uri_query = $this->grav['uri']->query();
$url_query_tab = explode($uri_query,"&");
$url_query_tab = explode("&", $uri_query);

$queries = $this->prepaprepareQueries($url_query_tab);

Expand Down

0 comments on commit 1ab2ed2

Please sign in to comment.