From: Siebrand Mazeland Date: Tue, 8 Mar 2016 07:46:02 +0000 (+0100) Subject: Declare functions with access modifiers X-Git-Tag: 1.31.0-rc.0~7708^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=e5b5fe7ba391f26193016b5214fa5b241a75c1e4;p=lhc%2Fweb%2Fwiklou.git Declare functions with access modifiers Parents have this visibility. Change-Id: Icb4d0a112def0ac02f9aa42723c81bc63c085450 --- diff --git a/includes/api/ApiStashEdit.php b/includes/api/ApiStashEdit.php index d8562b0d33..0d469a7aeb 100644 --- a/includes/api/ApiStashEdit.php +++ b/includes/api/ApiStashEdit.php @@ -433,19 +433,19 @@ class ApiStashEdit extends ApiBase { ]; } - function needsToken() { + public function needsToken() { return 'csrf'; } - function mustBePosted() { + public function mustBePosted() { return true; } - function isWriteMode() { + public function isWriteMode() { return true; } - function isInternal() { + public function isInternal() { return true; } }