/[drupal]/contributions/modules/serapi/serapi.module
ViewVC logotype

Diff of /contributions/modules/serapi/serapi.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8, Sat Jul 18 23:19:36 2009 UTC revision 1.9, Sat Aug 15 20:31:38 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: serapi.module,v 1.7 2008/11/05 22:10:42 yaph Exp $  // $Id: serapi.module,v 1.8 2009/07/18 23:19:36 yaph Exp $
3    
4  /**  /**
5   * Returns an array with information on the performed search   * Returns an array with information on the performed search
# Line 29  function serapi_get_search($referer = '' Line 29  function serapi_get_search($referer = ''
29      foreach($engines as $name => $prop) {      foreach($engines as $name => $prop) {
30        if (false !== stripos($host, $prop['host_pattern'])) {        if (false !== stripos($host, $prop['host_pattern'])) {
31          $param = $prop['query_param'];          $param = $prop['query_param'];
32            $query_parts = array();
33          parse_str($query, $query_parts);          parse_str($query, $query_parts);
34          // check that the query contains the search parameter          // check that the query contains the search parameter
35          if (isset($query_parts[$param])) {          if (isset($query_parts[$param])) {

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.2