Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -703,7 +703,12 @@ |
704 | 704 | * Accessor and mutator |
705 | 705 | */ |
706 | 706 | function name( $x = NULL ) { return wfSetVar( $this->mName, $x ); } |
707 | | - function restrictions( $x = NULL) { return wfSetVar( $this->mRestrictions, $x ); } |
| 707 | + function restrictions( $x = NULL) { |
| 708 | + # Use the one below this |
| 709 | + wfDeprecated( __METHOD__ ); |
| 710 | + return wfSetVar( $this->mRestriction, $x ); |
| 711 | + } |
| 712 | + function restriction( $x = NULL) { return wfSetVar( $this->mRestriction, $x ); } |
708 | 713 | function listed( $x = NULL) { return wfSetVar( $this->mListed, $x ); } |
709 | 714 | function func( $x = NULL) { return wfSetVar( $this->mFunction, $x ); } |
710 | 715 | function file( $x = NULL) { return wfSetVar( $this->mFile, $x ); } |