From 2a103ae8d7b6bcd04c57aedb2f307df75567d2e9 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 20 Oct 2010 20:16:46 +0000 Subject: [PATCH] Few more explicit class variable declarations --- includes/api/ApiQueryRevisions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 355db5bfcc..925fd96597 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -38,6 +38,9 @@ if ( !defined( 'MEDIAWIKI' ) ) { */ class ApiQueryRevisions extends ApiQueryBase { + private $diffto, $difftotext, $expandTemplates, $generateXML, $section, + $token; + public function __construct( $query, $moduleName ) { parent::__construct( $query, $moduleName, 'rv' ); } @@ -109,7 +112,6 @@ class ApiQueryRevisions extends ApiQueryBase { $this->dieUsage( 'titles, pageids or a generator was used to supply multiple pages, but the limit, startid, endid, dirNewer, user, excludeuser, start and end parameters may only be used on a single page.', 'multpages' ); } - $this->diffto = $this->difftotext = null; if ( !is_null( $params['difftotext'] ) ) { $this->difftotext = $params['difftotext']; } elseif ( !is_null( $params['diffto'] ) ) { -- 2.20.1