mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Move PConfig::set() to DI::pConfig()->set()
This commit is contained in:
parent
ea3a9052d8
commit
febc835a2d
42 changed files with 185 additions and 185 deletions
|
@ -71,10 +71,10 @@ function showmore_addon_settings_post(&$a, &$b)
|
|||
}
|
||||
|
||||
if (!empty($_POST['showmore-submit'])) {
|
||||
PConfig::set(local_user(), 'showmore', 'chars', trim($_POST['showmore-chars']));
|
||||
DI::pConfig()->set(local_user(), 'showmore', 'chars', trim($_POST['showmore-chars']));
|
||||
$enable = (!empty($_POST['showmore-enable']) ? intval($_POST['showmore-enable']) : 0);
|
||||
$disable = 1-$enable;
|
||||
PConfig::set(local_user(), 'showmore', 'disable', $disable);
|
||||
DI::pConfig()->set(local_user(), 'showmore', 'disable', $disable);
|
||||
info(L10n::t('Show More Settings saved.') . EOL);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue