Fold Avars Nogomatch extension into core
authorSam Reed <reedy@users.mediawiki.org>
Fri, 21 Jan 2011 19:02:17 +0000 (19:02 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 21 Jan 2011 19:02:17 +0000 (19:02 +0000)
No need for an extension just for a wfDebugLog call

includes/specials/SpecialSearch.php

index 64394b6..5188c8f 100644 (file)
@@ -118,6 +118,8 @@ class SpecialSearch extends SpecialPage {
                if( !is_null( $t ) ) {
                        global $wgGoToEdit;
                        wfRunHooks( 'SpecialSearchNogomatch', array( &$t ) );
+                       wfDebugLog( 'nogomatch', $t->getText(), false );
+
                        # If the feature is enabled, go straight to the edit page
                        if( $wgGoToEdit ) {
                                $wgOut->redirect( $t->getFullURL( array( 'action' => 'edit' ) ) );