mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +00:00
Replace old database queries with the new ones
This commit is contained in:
parent
8f9757aba5
commit
4ad655ab80
12 changed files with 42 additions and 181 deletions
|
@ -1106,9 +1106,7 @@ function admin_page_site_post(App $a)
|
|||
Config::set('system', 'touch_icon', $touch_icon);
|
||||
|
||||
if ($banner == "") {
|
||||
// don't know why, but del_config doesn't work...
|
||||
q("DELETE FROM `config` WHERE `cat` = '%s' AND `k` = '%s' LIMIT 1", dbesc("system"), dbesc("banner")
|
||||
);
|
||||
Config::delete('system', 'banner');
|
||||
} else {
|
||||
Config::set('system', 'banner', $banner);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue