Ignore:
Timestamp:
Sep 23, 2008, 3:04:41 AM (16 years ago)
Author:
rvelices
Message:
  • removed #debug css rule (why would we need that in default-layout?)
  • order by rank is not available in calendar/chronology mode
  • small non-functional change in functions_search.inc.php (handy for plugin)
  • unused variables/smaller code/unused params in func call
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_search.inc.php

    r2521 r2572  
    300300 * @return string
    301301 */
    302 function get_qsearch_like_clause($q, $field)
     302function get_qsearch_like_clause($q, $field, $before='%', $after='%')
    303303{
    304304  $q = stripslashes($q);
     
    394394    if ( strlen($tokens[$i])==0)
    395395      continue;
    396     $clauses[] = $field.' LIKE "%'.addslashes($tokens[$i]).'%"';
     396    $clauses[] = $field.' LIKE "'.$before.addslashes($tokens[$i]).$after.'"';
    397397  }
    398398
Note: See TracChangeset for help on using the changeset viewer.