r93368 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93367‎ | r93368 | r93369 >
Date:06:13, 28 July 2011
Author:nikerabbit
Status:ok (Comments)
Tags:
Comment:
Fu r93249: I see no reason to mark this private - protected should be the default value, only use private if you have some reason to. Avoids most of the breakage in out of tree extensions.
Modified paths:
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialPage.php
@@ -31,7 +31,7 @@
3232
3333 // The canonical name of this special page
3434 // Also used for the default <h1> heading, @see getDescription()
35 - private $mName;
 35+ protected $mName;
3636
3737 // The local name of this special page
3838 private $mLocalName;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93249makes SpecialPage::mName explicitly private...hashar21:30, 26 July 2011

Comments

#Comment by Hashar (talk | contribs)   08:57, 28 July 2011

There was now reason for 'private'. I just keep forgetting about 'protected' :-)

Status & tagging log