upload: Avoid &$this in hooks
authorrlot <rj23@protonmail.com>
Tue, 20 Dec 2016 15:49:15 +0000 (16:49 +0100)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 20 Dec 2016 23:24:58 +0000 (15:24 -0800)
commit0d742832f4a305165d2aac992189a3ab774d4a66
tree4308f1aa9d73430ea7b4a22b27b2c347275d7265
parent7b68a58dbb9c0eec8933e6fd08c23efab8a1c0ab
upload: Avoid &$this in hooks

&$this triggers warnings in PHP 7.1. Simply renaming the variable before
passing it by reference avoids the warning, without breaking backwards
compatibility.

Bug: T153505
Change-Id: I78ea04a01ecce82294837e92c2a05b00ffb6e0f6
includes/specials/SpecialUpload.php
includes/upload/UploadBase.php