Send the full title to the 'nogomatch' debug log group
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Thu, 6 Feb 2014 00:14:51 +0000 (01:14 +0100)
committerIAlex <codereview@emsenhuber.ch>
Wed, 26 Feb 2014 20:44:33 +0000 (20:44 +0000)
Otherwise the namespace gets lost when the user provides one.

Change-Id: I73f63e936ba53993ba40c89d7fa3d2b218a796a2

includes/specials/SpecialSearch.php

index b89522d..7787b05 100644 (file)
@@ -198,7 +198,7 @@ class SpecialSearch extends SpecialPage {
                if ( !is_null( $t ) ) {
                        global $wgGoToEdit;
                        wfRunHooks( 'SpecialSearchNogomatch', array( &$t ) );
-                       wfDebugLog( 'nogomatch', $t->getText(), 'private' );
+                       wfDebugLog( 'nogomatch', $t->getFullText(), 'private' );
 
                        # If the feature is enabled, go straight to the edit page
                        if ( $wgGoToEdit ) {