From 2f4230678a9626ede48de131ae09e9a4b02a27bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 19 Sep 2005 13:06:09 +0000 Subject: [PATCH] * Adding a SpecialSearchNogomatch hook to catch pages searched for with the go button that don't exist. --- includes/SpecialSearch.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index f06e18f029..b1abb72c61 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -105,6 +105,7 @@ class SpecialSearch { if( is_null( $t ) ) { $editurl = ''; # hrm... } else { + wfRunHooks( 'SpecialSearchNogomatch', array( &$t ) ); # If the feature is enabled, go straight to the edit page if ( $wgGoToEdit ) { $wgOut->redirect( $t->getFullURL( 'action=edit' ) ); -- 2.20.1