Revert avars deprecation in r11308
authorSam Reed <reedy@users.mediawiki.org>
Mon, 18 Apr 2011 19:03:46 +0000 (19:03 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 18 Apr 2011 19:03:46 +0000 (19:03 +0000)
Swap a couple of name() to getName()

includes/SpecialPage.php
includes/SpecialPageFactory.php

index 097c595..756c337 100644 (file)
@@ -380,20 +380,11 @@ class SpecialPage {
                }
        }
 
-       /**#@+
-         * Accessor
-         *
-         * @deprecated
-         */
        function getName() { return $this->mName; }
        function getRestriction() { return $this->mRestriction; }
        function getFile() { return $this->mFile; }
        function isListed() { return $this->mListed; }
-       /**#@-*/
 
-       /**#@+
-         * Accessor and mutator
-         */
        function name( $x = null ) { return wfSetVar( $this->mName, $x ); }
        function restrictions( $x = null) {
                # Use the one below this
@@ -406,7 +397,6 @@ class SpecialPage {
        function file( $x = null) { return wfSetVar( $this->mFile, $x ); }
        function includable( $x = null ) { return wfSetVar( $this->mIncludable, $x ); }
        function including( $x = null ) { return wfSetVar( $this->mIncluding, $x ); }
-       /**#@-*/
 
        /**
         * Get the localised name of the special page
@@ -506,7 +496,7 @@ class SpecialPage {
                global $wgContLang;
 
                if( $summaryMessageKey == '' ) {
-                       $msg = $wgContLang->lc( $this->name() ) . '-summary';
+                       $msg = $wgContLang->lc( $this->getName() ) . '-summary';
                } else {
                        $msg = $summaryMessageKey;
                }
index 74cfd91..4465e85 100644 (file)
@@ -457,7 +457,7 @@ class SpecialPageFactory {
                $page->including( $including );
 
                // Execute special page
-               $profName = 'Special:' . $page->name();
+               $profName = 'Special:' . $page->getName();
                wfProfileIn( $profName );
                $page->execute( $par );
                wfProfileOut( $profName );