Last modified: 2008-03-22 07:47:28 UTC
Requesting a small enhancement permitting extension developers to perform an action when a search term fails. Specifically, in SearchEngine.php, near line 115, in the 'getNearMatches' method, right after: <code> $title = Title::newFromText( $searchterm ); </code> Adding this code: <code> wfRunHooks('SearchEngineNoNearMatchFound', array(&$title) ); if ( $title->exists() ) { return $title; } </code> Would be very helpful. I'll be happy to answer any questions about this. -- Jim R. Wilson
Sounds like the SearchGetNearMatch hook satisfies this.
Yep, I think so. Thanks Brion :)