From 48851dc4221294f449da9796e009cecb4b36cb4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 24 Jul 2009 20:12:44 +0000 Subject: [PATCH] Deprecate broken accessor and add a new one --- includes/SpecialPage.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ); } -- 2.20.1