Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1498,9 +1498,13 @@ |
1499 | 1499 | $opts: FormOptions for this request |
1500 | 1500 | &$query_options: array of options for the database request |
1501 | 1501 | |
| 1502 | +'SpecialSearchGomatch': called when user clicked the "Go" button and the target |
| 1503 | +exists |
| 1504 | +&$title: title object generated from the text entred by the user |
| 1505 | + |
1502 | 1506 | 'SpecialSearchNogomatch': called when user clicked the "Go" button but the |
1503 | 1507 | target doesn't exist |
1504 | | -$title: title object generated from the text entred by the user |
| 1508 | +&$title: title object generated from the text entred by the user |
1505 | 1509 | |
1506 | 1510 | 'SpecialSearchProfiles': allows modification of search profiles |
1507 | 1511 | &$profiles: profiles, which can be modified. |
Index: trunk/phase3/CREDITS |
— | — | @@ -75,6 +75,7 @@ |
76 | 76 | * Brianna Laugher |
77 | 77 | * Carlin |
78 | 78 | * Conrad Irwin |
| 79 | +* Dan Barrett |
79 | 80 | * Dan Nessett |
80 | 81 | * Daniel Arnold |
81 | 82 | * Denny Vrandecic |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -92,6 +92,7 @@ |
93 | 93 | # If there's an exact or very near match, jump right there. |
94 | 94 | $t = SearchEngine::getNearMatch( $term ); |
95 | 95 | if( !is_null( $t ) ) { |
| 96 | + wfRunHooks( 'SpecialSearchGomatch', array( &$t ) ); |
96 | 97 | $wgOut->redirect( $t->getFullURL() ); |
97 | 98 | return; |
98 | 99 | } |
— | — | @@ -881,7 +882,6 @@ |
882 | 883 | $bareterm = substr( $term, strpos( $term, ':' ) + 1 ); |
883 | 884 | } |
884 | 885 | |
885 | | - |
886 | 886 | $profiles = $this->getSearchProfiles(); |
887 | 887 | |
888 | 888 | // Outputs XML for Search Types |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -47,6 +47,7 @@ |
48 | 48 | escaping. |
49 | 49 | * Special:Listfiles now supports a username parameter |
50 | 50 | * Special:Random carries over query string parameters |
| 51 | +* (bug 23206) Add Special::Search hook for detecting successful "Go" |
51 | 52 | |
52 | 53 | === Bug fixes in 1.17 === |
53 | 54 | * (bug 17560) Half-broken deletion moved image files to deletion archive |