mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 16:14:26 +02:00
Added parameters
This commit is contained in:
parent
abe6724629
commit
bd62d548db
84 changed files with 172 additions and 177 deletions
|
@ -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.'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue