mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:10:11 +00:00
parameters now are having a default value and are optional
This commit is contained in:
parent
bc2694bf7f
commit
8c03bdada9
110 changed files with 1840 additions and 165 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue