From: Happy-melon Date: Sat, 23 Apr 2011 21:26:54 +0000 (+0000) Subject: Follow-up r86347: the $mFile written to in SpecialUndelete is not actually the 'same... X-Git-Tag: 1.31.0-rc.0~30588 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=7fdc5d94a0b0391eed97ca7f58b3a7ac2a3e57fe;p=lhc%2Fweb%2Fwiklou.git Follow-up r86347: the $mFile written to in SpecialUndelete is not actually the 'same' variable as is used in SpecialPage (SpecialPage->mFile is the php file where wfEvilSpecialPageFunction() can be found, while SpecialUndelete->mFile is a deleted file), but it still complains about private access unless it's redeclared. --- diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index f5015e9dd3..281cdb6077 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -573,7 +573,7 @@ class PageArchive { * @ingroup SpecialPage */ class SpecialUndelete extends SpecialPage { - var $mAction, $mTarget, $mTimestamp, $mRestore, $mInvert, $mTargetObj; + var $mAction, $mTarget, $mTimestamp, $mRestore, $mInvert, $mTargetObj, $mFile; var $mTargetTimestamp, $mAllowed, $mCanView, $mComment, $mToken, $mRequest; function __construct( $request = null ) {