Replace old database queries with the new ones

This commit is contained in:
Michael 2018-05-02 19:26:15 +00:00
parent 8f9757aba5
commit 4ad655ab80
12 changed files with 42 additions and 181 deletions

View file

@ -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);
}