* Adding a SpecialSearchNogomatch hook to catch pages searched for with the go
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 19 Sep 2005 13:06:09 +0000 (13:06 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 19 Sep 2005 13:06:09 +0000 (13:06 +0000)
  button that don't exist.

includes/SpecialSearch.php

index f06e18f..b1abb72 100644 (file)
@@ -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' ) );