makes SpecialPage::mName explicitly private
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 26 Jul 2011 21:30:43 +0000 (21:30 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 26 Jul 2011 21:30:43 +0000 (21:30 +0000)
Only one occurence in Core : SpecialRandompage.
Extensions are done in a following commit.

includes/SpecialPage.php
includes/specials/SpecialRandompage.php

index adb408e..9984ac0 100644 (file)
@@ -31,7 +31,7 @@ class SpecialPage {
 
        // The canonical name of this special page
        // Also used for the default <h1> heading, @see getDescription()
-       /*private*/ var $mName;
+       private $mName;
 
        // The local name of this special page
        private $mLocalName;
index e299dc7..633dc0c 100644 (file)
@@ -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;
                }