From: Sam Reed Date: Wed, 20 Oct 2010 20:16:46 +0000 (+0000) Subject: Few more explicit class variable declarations X-Git-Tag: 1.31.0-rc.0~34396 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=2a103ae8d7b6bcd04c57aedb2f307df75567d2e9;p=lhc%2Fweb%2Fwiklou.git Few more explicit class variable declarations --- 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'] ) ) {