From: Antoine Musso Date: Tue, 26 Jul 2011 21:30:43 +0000 (+0000) Subject: makes SpecialPage::mName explicitly private X-Git-Tag: 1.31.0-rc.0~28603 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=c608fa871493bacbe878fbadd69682dec99c702d;p=lhc%2Fweb%2Fwiklou.git makes SpecialPage::mName explicitly private Only one occurence in Core : SpecialRandompage. Extensions are done in a following commit. --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index adb408ebad..9984ac0592 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -31,7 +31,7 @@ class SpecialPage { // The canonical name of this special page // Also used for the default

heading, @see getDescription() - /*private*/ var $mName; + private $mName; // The local name of this special page private $mLocalName; diff --git a/includes/specials/SpecialRandompage.php b/includes/specials/SpecialRandompage.php index e299dc7734..633dc0c126 100644 --- a/includes/specials/SpecialRandompage.php +++ b/includes/specials/SpecialRandompage.php @@ -65,7 +65,7 @@ class RandomPage extends SpecialPage { if( is_null( $title ) ) { $this->setHeaders(); - $wgOut->addWikiMsg( strtolower( $this->mName ) . '-nopages', + $wgOut->addWikiMsg( strtolower( $this->getName() ) . '-nopages', $this->getNsList(), count( $this->namespaces ) ); return; }