Fix Special:Undelete search - use variable and not request param
authorStanislav Malyshev <smalyshev@gmail.com>
Wed, 2 Aug 2017 03:34:33 +0000 (20:34 -0700)
committerStanislav Malyshev <smalyshev@gmail.com>
Wed, 2 Aug 2017 03:34:33 +0000 (20:34 -0700)
Using request param fixes default to false.

Change-Id: I61f3f5d18783e2256612d91ca35437a6e65e0c15

includes/specials/SpecialUndelete.php

index 28914f4..740207d 100644 (file)
@@ -277,7 +277,7 @@ class SpecialUndelete extends SpecialPage {
                        $fieldset,
                        new OOUI\HtmlSnippet(
                                Html::hidden( 'title', $this->getPageTitle()->getPrefixedDBkey() ) .
-                               Html::hidden( 'fuzzy', $this->getRequest()->getVal( 'fuzzy' ) )
+                               Html::hidden( 'fuzzy', $fuzzySearch )
                        )
                );