mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 08:14:25 +02:00
Adapt BaseURL calls to new UriInterface
This commit is contained in:
parent
9e6d95284b
commit
f0c29edcde
101 changed files with 218 additions and 241 deletions
|
@ -124,7 +124,7 @@ class Contact extends BaseModeration
|
|||
'$form_security_token' => self::getFormSecurityToken('moderation_contactblock'),
|
||||
|
||||
// values //
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
|
||||
'$contacts' => $contacts,
|
||||
'$total_contacts' => $this->tt('%s total blocked contact', '%s total blocked contacts', $total),
|
||||
|
|
|
@ -138,7 +138,7 @@ class Add extends BaseModeration
|
|||
'$newreason' => ['reason', $this->t('Block reason'), $request['reason'] ?? '', $this->t('The reason why you blocked this server domain pattern. This reason will be shown publicly in the server information page.'), $this->t('Required'), '', ''],
|
||||
'$pattern' => $pattern,
|
||||
'$gservers' => $gservers,
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
'$form_security_token' => self::getFormSecurityToken('moderation_blocklist_add')
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -130,7 +130,7 @@ class Import extends \Friendica\Module\BaseModeration
|
|||
'$mode_append' => ['mode', $this->t('Append'), 'append', $this->t('Imports patterns from the file that weren\'t already existing in the current blocklist.'), 'checked="checked"'],
|
||||
'$mode_replace' => ['mode', $this->t('Replace'), 'replace', $this->t('Replaces the current blocklist by the imported patterns.')],
|
||||
'$blocklist' => $this->blocklist,
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
'$form_security_token' => self::getFormSecurityToken('moderation_blocklist_import')
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ class Index extends BaseModeration
|
|||
'$listfile' => ['listfile', $this->t('Server domain pattern blocklist CSV file'), '', '', $this->t('Required'), '', 'file'],
|
||||
'$newdomain' => ['pattern', $this->t('Server Domain Pattern'), '', $this->t('The domain pattern of the new server to add to the blocklist. Do not include the protocol.'), $this->t('Required'), '', ''],
|
||||
'$entries' => $blocklistform,
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
|
||||
'$form_security_token' => self::getFormSecurityToken('moderation_blocklist'),
|
||||
'$form_security_token_import' => self::getFormSecurityToken('moderation_blocklist_import'),
|
||||
|
|
|
@ -32,7 +32,7 @@ class Active extends BaseUsers
|
|||
{
|
||||
$this->checkModerationAccess();
|
||||
|
||||
self::checkFormSecurityTokenRedirectOnError($this->baseUrl->get(true), 'moderation_users_active');
|
||||
self::checkFormSecurityTokenRedirectOnError($this->baseUrl, 'moderation_users_active');
|
||||
|
||||
$users = $request['user'] ?? [];
|
||||
|
||||
|
@ -150,7 +150,7 @@ class Active extends BaseUsers
|
|||
'$form_security_token' => self::getFormSecurityToken('moderation_users_active'),
|
||||
|
||||
// values //
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
'$query_string' => $this->args->getQueryString(),
|
||||
|
||||
'$users' => $users,
|
||||
|
|
|
@ -149,7 +149,7 @@ class Blocked extends BaseUsers
|
|||
'$form_security_token' => self::getFormSecurityToken('moderation_users_blocked'),
|
||||
|
||||
// values //
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
'$query_string' => $this->args->getQueryString(),
|
||||
|
||||
'$users' => $users,
|
||||
|
|
|
@ -65,7 +65,7 @@ class Create extends BaseUsers
|
|||
'$form_security_token' => self::getFormSecurityToken('admin_users_create'),
|
||||
|
||||
// values //
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
'$query_string' => $this->args->getQueryString(),
|
||||
|
||||
'$newusername' => ['new_user_name', $this->t('Name'), '', $this->t('Name of the new user.')],
|
||||
|
|
|
@ -85,7 +85,7 @@ class Deleted extends BaseUsers
|
|||
'$form_security_token' => self::getFormSecurityToken('moderation_users_deleted'),
|
||||
|
||||
// values //
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
'$query_string' => $this->args->getQueryString(),
|
||||
|
||||
'$users' => $users,
|
||||
|
|
|
@ -83,7 +83,7 @@ class Index extends BaseUsers
|
|||
switch ($action) {
|
||||
case 'delete':
|
||||
if ($this->session->getLocalUserId() != $uid) {
|
||||
self::checkFormSecurityTokenRedirectOnError($this->baseUrl->get(true), 'moderation_users', 't');
|
||||
self::checkFormSecurityTokenRedirectOnError($this->baseUrl, 'moderation_users', 't');
|
||||
// delete user
|
||||
User::remove($uid);
|
||||
|
||||
|
@ -168,7 +168,7 @@ class Index extends BaseUsers
|
|||
'$form_security_token' => self::getFormSecurityToken('moderation_users'),
|
||||
|
||||
// values //
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
'$query_string' => $this->args->getQueryString(),
|
||||
|
||||
'$users' => $users,
|
||||
|
|
|
@ -105,7 +105,7 @@ class Pending extends BaseUsers
|
|||
'$form_security_token' => self::getFormSecurityToken('admin_users_pending'),
|
||||
|
||||
// values //
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
'$query_string' => $this->args->getQueryString(),
|
||||
|
||||
'$pending' => $pending,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue