Dotclear

Changeset 2572:a144553cd87b for admin


Ignore:
Timestamp:
11/19/13 10:35:16 (12 years ago)
Author:
Dsls
Branch:
2.6
Message:

Better text filtering in ajax searchMeta, search is now "starts-with" search rather than "contains" search (preg_match was a bit luxurious for this test)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/services.php

    r2566 r2572  
    399399          while ($rs->fetch()) 
    400400          { 
    401                if (preg_match('/'.$q.'/i',$rs->meta_id)) { 
     401               if (stripos($rs->meta_id,$q) === 0) { 
    402402                    $metaTag = new xmlTag('meta'); 
    403403                    $metaTag->type = $rs->meta_type; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map