Skip to content

Commit

Permalink
Merge pull request #1 from electricputty/master
Browse files Browse the repository at this point in the history
Highlights on search result page clickthrough
  • Loading branch information
wesbaker committed Feb 9, 2012
2 parents 9cf6f87 + d1718aa commit ee8e3db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion search_hilite/pi.search_hilite.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ function Search_hilite($str = '',$param = '0')
}
else
{
$search_id = substr($this->EE->uri->query_string, 0, 32);
// We want to highlight the term when we click through from an EE search result, so we need to look at the referral last segment, not the current URL segment - @electriclabs - Rob Hodges 09/02/2012
// Explode the referral URL
$search_id = explode('/', $ref);
// Grab the search ID from the referral URL and continue
$search_id = ($search_id[count($search_id)-2]);
}

$this->EE->db->select('keywords');
Expand Down

0 comments on commit ee8e3db

Please sign in to comment.