From: Bryan Tong Minh Date: Wed, 2 Feb 2011 15:30:20 +0000 (+0000) Subject: Remove the $request parameter fro SpecialUploadStash::__construct(). This parameter... X-Git-Tag: 1.31.0-rc.0~32254 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=6551aa30fdd9ca1c990e52b6f6204089f9be49a3;p=lhc%2Fweb%2Fwiklou.git Remove the $request parameter fro SpecialUploadStash::__construct(). This parameter was in SpecialUpload::__construct because it used to be the only way to talk to the upload backend in the pre-1.16 era. Not needed for SpecialUploadStash. --- diff --git a/includes/specials/SpecialUploadStash.php b/includes/specials/SpecialUploadStash.php index 48a41a5e69..cf33cb980c 100644 --- a/includes/specials/SpecialUploadStash.php +++ b/includes/specials/SpecialUploadStash.php @@ -36,7 +36,7 @@ class SpecialUploadStash extends UnlistedSpecialPage { // uploading. const MAX_SERVE_BYTES = 262144; // 256K - public function __construct( $request = null ) { + public function __construct() { global $wgRequest; parent::__construct( 'UploadStash', 'upload' ); @@ -46,7 +46,7 @@ class SpecialUploadStash extends UnlistedSpecialPage { return null; } - $this->loadRequest( is_null( $request ) ? $wgRequest : $request ); + $this->loadRequest( $wgRequest ); } /**