mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:10:10 +00:00
Normalize use of form security tokens in Admin modules
# Conflicts: # src/Module/Admin/Logs/Settings.php
This commit is contained in:
parent
2ce15cae1a
commit
9bc2c5a52e
12 changed files with 43 additions and 39 deletions
|
@ -37,7 +37,7 @@ class Index extends BaseAdmin
|
|||
|
||||
// reload active themes
|
||||
if (!empty($_GET['action'])) {
|
||||
parent::checkFormSecurityTokenRedirectOnError(DI::baseUrl()->get() . '/admin/themes', 'admin_themes', 't');
|
||||
self::checkFormSecurityTokenRedirectOnError(DI::baseUrl()->get() . '/admin/themes', 'admin_themes', 't');
|
||||
|
||||
switch ($_GET['action']) {
|
||||
case 'reload':
|
||||
|
@ -119,7 +119,7 @@ class Index extends BaseAdmin
|
|||
'$noplugshint' => DI::l10n()->t('No themes found on the system. They should be placed in %1$s', '<code>/view/themes</code>'),
|
||||
'$experimental' => DI::l10n()->t('[Experimental]'),
|
||||
'$unsupported' => DI::l10n()->t('[Unsupported]'),
|
||||
'$form_security_token' => parent::getFormSecurityToken('admin_themes'),
|
||||
'$form_security_token' => self::getFormSecurityToken('admin_themes'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue