Replace underscores in target
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 1 Jul 2008 15:35:21 +0000 (15:35 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 1 Jul 2008 15:35:21 +0000 (15:35 +0000)
includes/specials/SpecialRecentchangeslinked.php

index 2b00ef3..3f9ad06 100644 (file)
@@ -108,7 +108,7 @@ class SpecialRecentchangeslinked extends SpecialRecentchanges {
                $extraOpts = array();
                $extraOpts['namespace'] = $this->namespaceFilterForm( $opts );
                $extraOpts['target'] = array( wfMsg( 'recentchangeslinked-page' ),
-                       Xml::input( 'target', 40, $opts['target'] ) .
+                       Xml::input( 'target', 40, str_replace('_',' ',$opts['target']) ) .
                        Xml::check( 'showlinkedto', $opts['showlinkedto'], array('id' => 'showlinkedto') ) . ' ' .
                        Xml::label( wfMsg("recentchangeslinked-to"), 'showlinkedto' ) );
                $extraOpts['submit'] = Xml::submitbutton( wfMsg('allpagessubmit') );