From: Brion Vibber Date: Fri, 21 Apr 2006 22:57:13 +0000 (+0000) Subject: Fit source in or near 80 columns, please. X-Git-Tag: 1.31.0-rc.0~57406 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=56fd060822827748cf614aa30c3fdd1624eb6ab2;p=lhc%2Fweb%2Fwiklou.git Fit source in or near 80 columns, please. Fixing some double-escaping of HTML output. --- diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 3739f108d9..40e22f18b3 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -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 ); }