mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:50:20 +00:00
Remove unused settings_post and settings_form hooks
- Addons should use the addon_form hook instead
This commit is contained in:
parent
64330f9895
commit
90368d7484
3 changed files with 1 additions and 27 deletions
|
@ -22,9 +22,7 @@
|
|||
namespace Friendica\Module\Settings;
|
||||
|
||||
use Exception;
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\ACL;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Worker;
|
||||
|
@ -97,8 +95,6 @@ class Account extends BaseSettings
|
|||
DI::baseUrl()->redirect('settings');
|
||||
}
|
||||
|
||||
Hook::callAll('settings_post', $_POST);
|
||||
|
||||
if (!empty($_POST['password']) || !empty($_POST['confirm'])) {
|
||||
$newpass = $_POST['password'];
|
||||
$confirm = $_POST['confirm'];
|
||||
|
@ -485,7 +481,7 @@ class Account extends BaseSettings
|
|||
'$submit' => DI::l10n()->t('Save Settings'),
|
||||
'$baseurl' => DI::baseUrl()->get(true),
|
||||
'$uid' => local_user(),
|
||||
'$form_security_token' => BaseModule::getFormSecurityToken("settings"),
|
||||
'$form_security_token' => self::getFormSecurityToken('settings'),
|
||||
'$nickname_block' => $prof_addr,
|
||||
|
||||
'$h_pass' => DI::l10n()->t('Password Settings'),
|
||||
|
@ -574,10 +570,6 @@ class Account extends BaseSettings
|
|||
'$relocate_button' => DI::l10n()->t("Resend relocate message to contacts"),
|
||||
]);
|
||||
|
||||
Hook::callAll('settings_form', $o);
|
||||
|
||||
$o .= '</form>' . "\r\n";
|
||||
|
||||
return $o;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue