From: Ævar Arnfjörð Bjarmason Date: Mon, 19 Sep 2005 13:06:09 +0000 (+0000) Subject: * Adding a SpecialSearchNogomatch hook to catch pages searched for with the go X-Git-Tag: 1.6.0~1606 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=2f4230678a9626ede48de131ae09e9a4b02a27bd;p=lhc%2Fweb%2Fwiklou.git * Adding a SpecialSearchNogomatch hook to catch pages searched for with the go button that don't exist. --- 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' ) );