Added parameters
This commit is contained in:
@@ -14,7 +14,7 @@ use Friendica\Util\XML;
|
||||
*/
|
||||
class Babel extends BaseModule
|
||||
{
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
function visible_whitespace($s)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ use Friendica\Util\Network;
|
||||
*/
|
||||
class Feed extends BaseModule
|
||||
{
|
||||
public static function init()
|
||||
public static function init($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
info(L10n::t('You must be logged in to use this module'));
|
||||
@@ -22,7 +22,7 @@ class Feed extends BaseModule
|
||||
}
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
$result = [];
|
||||
if (!empty($_REQUEST['url'])) {
|
||||
|
||||
@@ -12,7 +12,7 @@ use Friendica\Network\HTTPException;
|
||||
*/
|
||||
class ItemBody extends BaseModule
|
||||
{
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
throw new HTTPException\UnauthorizedException(L10n::t('Access denied.'));
|
||||
|
||||
@@ -10,7 +10,7 @@ use Friendica\Util\Temporal;
|
||||
|
||||
class Localtime extends BaseModule
|
||||
{
|
||||
public static function post()
|
||||
public static function post($parameters)
|
||||
{
|
||||
$time = ($_REQUEST['time'] ?? '') ?: 'now';
|
||||
|
||||
@@ -21,7 +21,7 @@ class Localtime extends BaseModule
|
||||
}
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
$app = self::getApp();
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ use Friendica\Network\Probe as NetworkProbe;
|
||||
*/
|
||||
class Probe extends BaseModule
|
||||
{
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
$e = new HTTPException\ForbiddenException(L10n::t('Only logged in users are permitted to perform a probing.'));
|
||||
|
||||
@@ -12,7 +12,7 @@ use Friendica\Network\Probe;
|
||||
*/
|
||||
class WebFinger extends BaseModule
|
||||
{
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
$e = new \Friendica\Network\HTTPException\ForbiddenException(L10n::t('Only logged in users are permitted to perform a probing.'));
|
||||
|
||||
Reference in New Issue
Block a user