Bug 32673: Keep the username in the input field if not existing
authorPlatonides <platonides@users.mediawiki.org>
Sun, 27 Nov 2011 16:28:54 +0000 (16:28 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 27 Nov 2011 16:28:54 +0000 (16:28 +0000)
We could also add on LogEventsList.php line 870
$this->performer = $name;
but that method is also used to build the query, which we don't want to affect.

includes/specials/SpecialLog.php

index b140a17..0c670f5 100644 (file)
@@ -144,7 +144,7 @@ class SpecialLog extends SpecialPage {
                }
 
                # Show form options
-               $loglist->showOptions( $pager->getType(), $pager->getPerformer(), $pager->getPage(), $pager->getPattern(),
+               $loglist->showOptions( $pager->getType(), $opts->getValue( 'user' ), $pager->getPage(), $pager->getPattern(),
                        $pager->getYear(), $pager->getMonth(), $pager->getFilterParams(), $opts->getValue( 'tagfilter' ) );
 
                # Insert list