From: Niklas Laxström Date: Fri, 24 Jul 2009 20:12:44 +0000 (+0000) Subject: Deprecate broken accessor and add a new one X-Git-Tag: 1.31.0-rc.0~40735 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=48851dc4221294f449da9796e009cecb4b36cb4e;p=lhc%2Fweb%2Fwiklou.git Deprecate broken accessor and add a new one --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index ed26b8b1c9..dbf097482b 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -703,7 +703,12 @@ Perhaps no page aliases are defined for it?" ); * Accessor and mutator */ function name( $x = NULL ) { return wfSetVar( $this->mName, $x ); } - function restrictions( $x = NULL) { return wfSetVar( $this->mRestrictions, $x ); } + function restrictions( $x = NULL) { + # Use the one below this + wfDeprecated( __METHOD__ ); + return wfSetVar( $this->mRestriction, $x ); + } + function restriction( $x = NULL) { return wfSetVar( $this->mRestriction, $x ); } function listed( $x = NULL) { return wfSetVar( $this->mListed, $x ); } function func( $x = NULL) { return wfSetVar( $this->mFunction, $x ); } function file( $x = NULL) { return wfSetVar( $this->mFile, $x ); }