Skip to content

Commit

Permalink
Fixing #237
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Adams committed Mar 15, 2017
1 parent 2f413b4 commit 81ac6b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/base/classes/client.php
Expand Up @@ -806,7 +806,7 @@ private function isRefererSearchEngine( $uri ) {
$term = $uri['query_params'][$query_param];
}

if ( strpos($host, $domain) && $term ) {
if ( strpos($host, $domain) ) {
owa_coreAPI::debug( 'Found search engine: %s with query param %s:, query term: %s', $domain, $query_param, $term);

return array('d' => $domain, 'q' => $query_param, 't' => $term );
Expand Down
4 changes: 2 additions & 2 deletions modules/base/js/owa.tracker-combined-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/base/js/owa.tracker.js
Expand Up @@ -1710,7 +1710,7 @@ OWA.tracker.prototype = {
var host = uri.getHost();
var term = uri.getQueryParam(query_param);

if ( OWA.util.strpos(host, domain) && uri.isQueryParam( query_param ) ) {
if ( OWA.util.strpos(host, domain) ) {
OWA.debug( 'Found search engine: %s with query param %s:, query term: %s', domain, query_param, term);

return {d: domain, q: query_param, t: term };
Expand Down

0 comments on commit 81ac6b2

Please sign in to comment.