Fit source in or near 80 columns, please.
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 21 Apr 2006 22:57:13 +0000 (22:57 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 21 Apr 2006 22:57:13 +0000 (22:57 +0000)
Fixing some double-escaping of HTML output.

includes/SpecialNewpages.php

index 3739f10..40e22f1 100644 (file)
@@ -114,13 +114,26 @@ class NewPagesPage extends QueryPage {
         */     
        function getPageHeader() {
                $thisTitle = Title::makeTitle( NS_SPECIAL, $this->getName() );
-               $form  = wfElement( 'form', array( 'method' => 'post', 'action' => $thisTitle->escapeLocalUrl() ), NULL );
-               $form .= wfElement( 'label', array( 'for' => 'namespace' ), wfMsgHtml( 'namespace' ) ) . ' ';
+               $form  = wfOpenElement( 'form', array(
+                       'method' => 'post',
+                       'action' => $thisTitle->getLocalUrl() ) );
+               $form .= wfElement( 'label', array( 'for' => 'namespace' ),
+                       wfMsg( 'namespace' ) ) . ' ';
                $form .= HtmlNamespaceSelector( $this->namespace );
                # Preserve the offset and limit
-               $form .= wfElement( 'input', array( 'type' => 'hidden', 'name' => 'offset', 'value' => $this->offset ), '' );
-               $form .= wfElement( 'input', array( 'type' => 'hidden', 'name' => 'limit', 'value' => $this->limit ), '' );
-               $form .= wfElement( 'input', array( 'type' => 'submit',  'name' => 'submit', 'id' => 'submit', 'value' => wfMsgHtml( 'allpagessubmit' ) ), '' );
+               $form .= wfElement( 'input', array(
+                       'type' => 'hidden',
+                       'name' => 'offset',
+                       'value' => $this->offset ) );
+               $form .= wfElement( 'input', array(
+                       'type' => 'hidden',
+                       'name' => 'limit',
+                       'value' => $this->limit ) );
+               $form .= wfElement( 'input', array(
+                       'type' => 'submit',
+                       'name' => 'submit',
+                       'id' => 'submit',
+                       'value' => wfMsg( 'allpagessubmit' ) ) );
                $form .= wfCloseElement( 'form' );
                return( $form );
        }