From cecb985bee3bdd252e1b8dc0bd500b37cd52be01 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 16 May 2007 20:58:53 +0000 Subject: Aktualisierung auf MediaWiki 1.10.0 Plugins angepasst und verbessert kleine Korrekturen am Design --- includes/SpecialNewpages.php | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'includes/SpecialNewpages.php') diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 62007383..48037a73 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -1,14 +1,12 @@ isAllowed( 'patrol' ) ) ? 1 : 0; - $dbr =& wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_SLAVE ); list( $recentchanges, $page ) = $dbr->tableNamesN( 'recentchanges', 'page' ); $uwhere = $this->makeUserWhere( $dbr ); @@ -52,9 +50,9 @@ class NewPagesPage extends QueryPage { rc_namespace AS namespace, rc_title AS title, rc_cur_id AS cur_id, - rc_user AS user, + rc_user AS \"user\", rc_user_text AS user_text, - rc_comment as comment, + rc_comment as \"comment\", rc_timestamp AS timestamp, rc_timestamp AS value, '{$usepatrol}' as usepatrol, @@ -133,13 +131,16 @@ class NewPagesPage extends QueryPage { */ function getPageHeader() { $self = SpecialPage::getTitleFor( $this->getName() ); - $form = wfOpenElement( 'form', array( 'method' => 'post', 'action' => $self->getLocalUrl() ) ); - $form .= ''; - $form .= ''; - $form .= ''; - $form .= ''; - $form .= '
' . wfMsgHtml( 'namespace' ) . '' . HtmlNamespaceSelector( $this->namespace ) . '
' . wfMsgHtml( 'newpages-username' ) . '' . wfInput( 'username', 30, $this->username ) . '
' . wfSubmitButton( wfMsg( 'allpagessubmit' ) ) . '
'; - $form .= wfHidden( 'offset', $this->offset ) . wfHidden( 'limit', $this->limit ) . ''; + $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $self->getLocalUrl() ) ); + # Namespace selector + $form .= ''; + $form .= ''; + # Username filter + $form .= ''; + $form .= ''; + + $form .= '
' . Xml::label( wfMsg( 'namespace' ), 'namespace' ) . '' . Xml::namespaceSelector( $this->namespace ) . '
' . Xml::label( wfMsg( 'newpages-username' ), 'mw-np-username' ) . '' . Xml::input( 'username', 30, $this->username, array( 'id' => 'mw-np-username' ) ) . '
' . Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . '
'; + $form .= Xml::hidden( 'offset', $this->offset ) . Xml::hidden( 'limit', $this->limit ) . ''; return $form; } -- cgit v1.2.2