Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6751
diff.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:05 PM
2014-11-21 23:05:56 (UTC+0)
Size
771 B
Referenced Files
None
Subscribers
None
diff.txt
View Options
*** new/SpecialSearch.php 2010-04-15 16:19:15.000000000 -0400
--- specials/SpecialSearch.php 2010-04-15 16:20:05.000000000 -0400
***************
*** 93,98 ****
--- 93,99 ----
# If there's an exact or very near match, jump right there.
$t = SearchEngine::getNearMatch( $term );
if( !is_null( $t ) ) {
+ wfRunHooks( 'SpecialSearchGomatch', array( $t, $term ) );
$wgOut->redirect( $t->getFullURL() );
return;
}
***************
*** 886,891 ****
--- 887,893 ----
# If there's an exact or very near match, jump right there.
$t = SearchEngine::getNearMatch( $term );
if( !is_null( $t ) ) {
+ wfRunHooks( 'SpecialSearchGomatch', array( $t, $term ) );
$wgOut->redirect( $t->getFullURL() );
return;
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6290
Default Alt Text
diff.txt (771 B)
Attached To
Mode
T25206: Add Special::Search hook for detecting successful "Go"
Attached
Detach File
Event Timeline
Log In to Comment