Index: trunk/phase3/includes/actions/InfoAction.php |
— | — | @@ -29,10 +29,6 @@ |
30 | 30 | return 'info'; |
31 | 31 | } |
32 | 32 | |
33 | | - public function getRestriction() { |
34 | | - return null; |
35 | | - } |
36 | | - |
37 | 33 | protected function getDescription() { |
38 | 34 | return ''; |
39 | 35 | } |
Index: trunk/phase3/includes/actions/CreditsAction.php |
— | — | @@ -29,10 +29,6 @@ |
30 | 30 | return 'credits'; |
31 | 31 | } |
32 | 32 | |
33 | | - public function getRestriction() { |
34 | | - return null; |
35 | | - } |
36 | | - |
37 | 33 | protected function getDescription() { |
38 | 34 | return wfMsg( 'creditspage' ); |
39 | 35 | } |
Index: trunk/phase3/includes/actions/HistoryAction.php |
— | — | @@ -23,10 +23,6 @@ |
24 | 24 | return 'history'; |
25 | 25 | } |
26 | 26 | |
27 | | - public function getRestriction() { |
28 | | - return null; |
29 | | - } |
30 | | - |
31 | 27 | public function requiresWrite() { |
32 | 28 | return false; |
33 | 29 | } |
Index: trunk/phase3/includes/actions/MarkpatrolledAction.php |
— | — | @@ -28,10 +28,6 @@ |
29 | 29 | return 'markpatrolled'; |
30 | 30 | } |
31 | 31 | |
32 | | - public function getRestriction() { |
33 | | - return null; |
34 | | - } |
35 | | - |
36 | 32 | protected function getDescription() { |
37 | 33 | return ''; |
38 | 34 | } |
Index: trunk/phase3/includes/actions/RevisiondeleteAction.php |
— | — | @@ -29,10 +29,6 @@ |
30 | 30 | return 'revisiondelete'; |
31 | 31 | } |
32 | 32 | |
33 | | - public function getRestriction() { |
34 | | - return null; |
35 | | - } |
36 | | - |
37 | 33 | public function requiresUnblock() { |
38 | 34 | return false; |
39 | 35 | } |
Index: trunk/phase3/includes/actions/PurgeAction.php |
— | — | @@ -31,10 +31,6 @@ |
32 | 32 | return 'purge'; |
33 | 33 | } |
34 | 34 | |
35 | | - public function getRestriction() { |
36 | | - return null; |
37 | | - } |
38 | | - |
39 | 35 | public function requiresUnblock() { |
40 | 36 | return false; |
41 | 37 | } |
Index: trunk/phase3/includes/actions/WatchAction.php |
— | — | @@ -26,10 +26,6 @@ |
27 | 27 | return 'watch'; |
28 | 28 | } |
29 | 29 | |
30 | | - public function getRestriction() { |
31 | | - return null; |
32 | | - } |
33 | | - |
34 | 30 | public function requiresUnblock() { |
35 | 31 | return false; |
36 | 32 | } |
Index: trunk/phase3/includes/actions/RevertAction.php |
— | — | @@ -34,10 +34,6 @@ |
35 | 35 | return 'revert'; |
36 | 36 | } |
37 | 37 | |
38 | | - public function getRestriction() { |
39 | | - return null; |
40 | | - } |
41 | | - |
42 | 38 | public function show() { |
43 | 39 | $this->getOutput()->showErrorPage( 'nosuchaction', 'nosuchactiontext' ); |
44 | 40 | } |
Index: trunk/phase3/includes/actions/RawAction.php |
— | — | @@ -24,10 +24,6 @@ |
25 | 25 | return 'raw'; |
26 | 26 | } |
27 | 27 | |
28 | | - public function getRestriction() { |
29 | | - return null; |
30 | | - } |
31 | | - |
32 | 28 | public function requiresWrite() { |
33 | 29 | return false; |
34 | 30 | } |
Index: trunk/phase3/includes/Action.php |
— | — | @@ -201,8 +201,11 @@ |
202 | 202 | /** |
203 | 203 | * Get the permission required to perform this action. Often, but not always, |
204 | 204 | * the same as the action name |
| 205 | + * @return String|null |
205 | 206 | */ |
206 | | - public abstract function getRestriction(); |
| 207 | + public function getRestriction() { |
| 208 | + return null; |
| 209 | + } |
207 | 210 | |
208 | 211 | /** |
209 | 212 | * Checks if the given user (identified by an object) can perform this action. Can be |