mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
Move PConfig::delete() to DI::pConfig()->delete()
This commit is contained in:
parent
febc835a2d
commit
346bf125a7
7 changed files with 35 additions and 35 deletions
|
@ -403,25 +403,25 @@ function mailstream_addon_settings_post($a,$post) {
|
|||
DI::pConfig()->set(local_user(), 'mailstream', 'address', $_POST['mailstream_address']);
|
||||
}
|
||||
else {
|
||||
PConfig::delete(local_user(), 'mailstream', 'address');
|
||||
DI::pConfig()->delete(local_user(), 'mailstream', 'address');
|
||||
}
|
||||
if ($_POST['mailstream_nolikes']) {
|
||||
DI::pConfig()->set(local_user(), 'mailstream', 'nolikes', $_POST['mailstream_enabled']);
|
||||
}
|
||||
else {
|
||||
PConfig::delete(local_user(), 'mailstream', 'nolikes');
|
||||
DI::pConfig()->delete(local_user(), 'mailstream', 'nolikes');
|
||||
}
|
||||
if ($_POST['mailstream_enabled']) {
|
||||
DI::pConfig()->set(local_user(), 'mailstream', 'enabled', $_POST['mailstream_enabled']);
|
||||
}
|
||||
else {
|
||||
PConfig::delete(local_user(), 'mailstream', 'enabled');
|
||||
DI::pConfig()->delete(local_user(), 'mailstream', 'enabled');
|
||||
}
|
||||
if ($_POST['mailstream_attachimg']) {
|
||||
DI::pConfig()->set(local_user(), 'mailstream', 'attachimg', $_POST['mailstream_attachimg']);
|
||||
}
|
||||
else {
|
||||
PConfig::delete(local_user(), 'mailstream', 'attachimg');
|
||||
DI::pConfig()->delete(local_user(), 'mailstream', 'attachimg');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue