From: Aryeh Gregor Date: Sun, 29 Aug 2010 21:40:27 +0000 (+0000) Subject: Make SpecialUpload members public again X-Git-Tag: 1.31.0-rc.0~35277 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=af3c4d8bf6234ceb3e25012e629de49769a2d384;p=lhc%2Fweb%2Fwiklou.git Make SpecialUpload members public again These were made protected in r57868 with no explanation, and it broke extensions. See bug 24981, which points out that there's no longer any way for extensions to edit things like $mComment from the UploadForm:BeforeProcessing hook. Will backport to 1.16, as a regression from 1.15. --- diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 4fce3c691f..088ad0fcc9 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -43,29 +43,29 @@ class SpecialUpload extends SpecialPage { } /** Misc variables **/ - protected $mRequest; // The WebRequest or FauxRequest this form is supposed to handle - protected $mSourceType; - protected $mUpload; - protected $mLocalFile; - protected $mUploadClicked; + public $mRequest; // The WebRequest or FauxRequest this form is supposed to handle + public $mSourceType; + public $mUpload; + public $mLocalFile; + public $mUploadClicked; /** User input variables from the "description" section **/ - public $mDesiredDestName; // The requested target file name - protected $mComment; - protected $mLicense; + public $mDesiredDestName; // The requested target file name + public $mComment; + public $mLicense; /** User input variables from the root section **/ - protected $mIgnoreWarning; - protected $mWatchThis; - protected $mCopyrightStatus; - protected $mCopyrightSource; + public $mIgnoreWarning; + public $mWatchThis; + public $mCopyrightStatus; + public $mCopyrightSource; /** Hidden variables **/ - protected $mDestWarningAck; - protected $mForReUpload; // The user followed an "overwrite this file" link - protected $mCancelUpload; // The user clicked "Cancel and return to upload form" button - protected $mTokenOk; - protected $mUploadSuccessful = false; // Subclasses can use this to determine whether a file was uploaded + public $mDestWarningAck; + public $mForReUpload; // The user followed an "overwrite this file" link + public $mCancelUpload; // The user clicked "Cancel and return to upload form" button + public $mTokenOk; + public $mUploadSuccessful = false; // Subclasses can use this to determine whether a file was uploaded /** Text injection points for hooks not using HTMLForm **/ public $uploadFormTextTop;