mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:10:11 +00:00
Move Config::set() to DI::config()->set()
This commit is contained in:
parent
6c36fd9e01
commit
3411ced833
29 changed files with 213 additions and 229 deletions
|
@ -23,9 +23,9 @@ class Tos extends BaseAdminModule
|
|||
$displayprivstatement = !empty($_POST['displayprivstatement']);
|
||||
$tostext = (!empty($_POST['tostext']) ? strip_tags(trim($_POST['tostext'])) : '');
|
||||
|
||||
Config::set('system', 'tosdisplay', $displaytos);
|
||||
Config::set('system', 'tosprivstatement', $displayprivstatement);
|
||||
Config::set('system', 'tostext', $tostext);
|
||||
DI::config()->set('system', 'tosdisplay', $displaytos);
|
||||
DI::config()->set('system', 'tosprivstatement', $displayprivstatement);
|
||||
DI::config()->set('system', 'tostext', $tostext);
|
||||
|
||||
info(DI::l10n()->t('The Terms of Service settings have been updated.'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue