Changeset 1577


Ignore:
Timestamp:
07/14/17 10:33:30 (4 months ago)
Author:
csnyder
Message:

Better matching algo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • goddard/actions/notfound.php

    r986 r1577  
    2020} 
    2121$matches = new fcnyCollection(); 
    22 $matches->load( "obj.name ".$db->escapedLIKE( $basename ), $site, TRUE, array('book','page','issue','event','module','feature','link') ); 
     22$matches->load( "obj.name ".$db->escapedLIKE( $basename ), $site, TRUE, array('book','page','issue','event','module','feature','link'), 1, 'name+' ); 
    2323if ( $matches->count() ) { 
    2424  $request->redirect301( $matches->{0}->url ); 
Note: See TracChangeset for help on using the changeset viewer.