Parse the undelete-search-prefix message
authorMarius Hoch <hoo@online.de>
Fri, 12 Jul 2013 15:04:04 +0000 (17:04 +0200)
committerMarius Hoch <hoo@online.de>
Sun, 14 Jul 2013 17:26:09 +0000 (19:26 +0200)
Requested on dewiki to use an explaining wikilink there.

Change-Id: Ib36afee75089c04fcd73bc0000c964f39869c6bb

includes/specials/SpecialUndelete.php

index caf6a8b..d4aed11 100644 (file)
@@ -792,13 +792,16 @@ class SpecialUndelete extends SpecialPage {
                        Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) .
                                Xml::fieldset( $this->msg( 'undelete-search-box' )->text() ) .
                                Html::hidden( 'title', $this->getTitle()->getPrefixedDBkey() ) .
-                               Xml::inputLabel(
-                                       $this->msg( 'undelete-search-prefix' )->text(),
-                                       'prefix',
+                               Html::rawElement(
+                                       'label',
+                                       array( 'for' => 'prefix' ),
+                                       $this->msg( 'undelete-search-prefix' )->parse()
+                               ) .
+                               Xml::input(
                                        'prefix',
                                        20,
                                        $this->mSearchPrefix,
-                                       array( 'autofocus' => true )
+                                       array( 'id' => 'prefix', 'autofocus' => true )
                                ) . ' ' .
                                Xml::submitButton( $this->msg( 'undelete-search-submit' )->text() ) .
                                Xml::closeElement( 'fieldset' ) .