mirror of
https://github.com/friendica/friendica
synced 2025-04-21 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
|
@ -47,7 +47,7 @@ class Tos extends BaseModule
|
|||
* dealings with their own node so a TOS is not necessary.
|
||||
*
|
||||
**/
|
||||
public static function init($parameters)
|
||||
public static function init(array $parameters = [])
|
||||
{
|
||||
if (strlen(Config::get('system','singleuser'))) {
|
||||
self::getApp()->internalRedirect('profile/' . Config::get('system','singleuser'));
|
||||
|
@ -66,7 +66,7 @@ class Tos extends BaseModule
|
|||
* @return string
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public static function content($parameters) {
|
||||
public static function content(array $parameters = []) {
|
||||
$tpl = Renderer::getMarkupTemplate('tos.tpl');
|
||||
if (Config::get('system', 'tosdisplay')) {
|
||||
return Renderer::replaceMacros($tpl, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue