Changeset 29805


Ignore:
Timestamp:
Sep 26, 2014, 10:17:15 PM (10 years ago)
Author:
rvelices
Message:

bug 3148: quick search Merged -r29804 from trunk to branch 2.7

Location:
branches/2.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/include/functions_search.inc.php

    r29483 r29805  
    385385  {
    386386    $clauses = array();
    387     if ($token->scope_data['range'][0]!=='')
     387    if ($token->scope_data['range'][0]!='')
    388388      $clauses[] = $field.' >'.($token->scope_data['strict'][0]?'':'=').$token->scope_data['range'][0].' ';
    389     if ($token->scope_data['range'][1]!=='')
     389    if ($token->scope_data['range'][1]!='')
    390390      $clauses[] = $field.' <'.($token->scope_data['strict'][1]?'':'=').$token->scope_data['range'][1].' ';
    391391
     
    459459  {
    460460    $clauses = array();
    461     if ($token->scope_data[0]!=='')
     461    if ($token->scope_data[0]!='')
    462462      $clauses[] = $field.' >= \'' . $token->scope_data[0].'\'';
    463     if ($token->scope_data[1]!=='')
     463    if ($token->scope_data[1]!='')
    464464      $clauses[] = $field.' <= \'' . $token->scope_data[1].'\'';
    465465
     
    10821082      $crt_ids = $qsr->iids[$crt->idx] = array_unique( array_merge($qsr->images_iids[$crt->idx], $qsr->tag_iids[$crt->idx]) );
    10831083      $crt_qualifies = count($crt_ids)>0 || count($qsr->tag_ids[$crt->idx])>0;
    1084       $crt_ignored_terms = $crt_qualifies ? array() : array($crt->term);
     1084      $crt_ignored_terms = $crt_qualifies ? array() : array((string)$crt);
    10851085    }
    10861086    else
     
    11731173    );
    11741174
     1175  $q = trigger_change('qsearch_pre', $q);
     1176
    11751177  $scopes = array();
    11761178  $scopes[] = new QSearchScope('tag', array('tags'));
     
    12481250
    12491251  $search_results['qs']['matching_tags'] = $qsr->all_tags;
     1252  $search_results = trigger_change('qsearch_results', $search_results, $expression, $qsr);
     1253
    12501254  global $template;
    12511255
  • branches/2.7/index.php

    r28587 r29805  
    246246    elseif (!empty($page['qsearch_details']['unmatched_terms']))
    247247    {
    248       $template->assign( 'no_search_results', $page['qsearch_details']['unmatched_terms']);
     248      $template->assign( 'no_search_results', array_map($page['qsearch_details']['unmatched_terms'], 'htmlspecialchars'));
    249249    }
    250250  }
Note: See TracChangeset for help on using the changeset viewer.