parameters now are having a default value and are optional

This commit is contained in:
Michael 2019-11-05 21:48:54 +00:00
parent bc2694bf7f
commit 8c03bdada9
110 changed files with 1840 additions and 165 deletions

View file

@ -35,7 +35,7 @@ class Register extends BaseModule
*
* @return string
*/
public static function content($parameters)
public static function content(array $parameters = [])
{
// logged in users can register others (people/pages/groups)
// even with closed registrations, unless specifically prohibited by site policy.
@ -152,7 +152,7 @@ class Register extends BaseModule
* Extend this method if the module is supposed to process POST requests.
* Doesn't display any content
*/
public static function post($parameters)
public static function post(array $parameters = [])
{
BaseModule::checkFormSecurityTokenRedirectOnError('/register', 'register');