From 346666053f7586dc2711437bcdc7e2dcd1907880 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 10 Feb 2008 10:05:49 +0000 Subject: [PATCH] * fix Strict Standards: Declaration of NewPagesPage::preprocessResults() should be compatible with that of QueryPage::preprocessResults() in SpecialNewpages.php * remove EOL whitespace --- includes/SpecialNewpages.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 63e218a6ef..9089bb9c7e 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -42,7 +42,7 @@ class NewPagesPage extends QueryPage { /* int */ 'limit' => 50, ); - $options = $defaults; + $options = $defaults; if ( $par ) { $bits = preg_split( '/\s*,\s*/', trim( $par ) ); @@ -145,7 +145,6 @@ class NewPagesPage extends QueryPage { return $conds; } - function getSQL() { global $wgUser, $wgUseNPPatrol, $wgUseRCPatrol; $usepatrol = ( $wgUseNPPatrol || $wgUseRCPatrol ) ? 1 : 0; @@ -180,8 +179,8 @@ class NewPagesPage extends QueryPage { FROM $recentchanges,$page WHERE rc_cur_id=page_id AND $condstext"; } - - function preprocessResults( $db, $res ) { + + function preprocessResults( &$db, &$res ) { # Do a batch existence check on the user and talk pages $linkBatch = new LinkBatch(); while( $row = $db->fetchObject( $res ) ) { @@ -240,12 +239,12 @@ class NewPagesPage extends QueryPage { } return parent::feedItemDesc( $row ); } - + /** * Show a form for filtering namespace and username * * @return string - */ + */ function getPageHeader() { global $wgScript, $wgContLang, $wgGroupPermissions, $wgUser, $wgUseRCPatrol, $wgUseNPPatrol; $sk = $wgUser->getSkin(); @@ -315,5 +314,4 @@ class NewPagesPage extends QueryPage { Xml::closeElement( 'form' ); return $form; } - -} \ No newline at end of file +} -- 2.20.1