diff --git a/controllers/admin.php b/controllers/admin.php index 65f017c..8b05fe5 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -316,7 +316,7 @@ public function index($theme) } else { - $this->db->where('name', 'dungeon_header')->delete('nf_settings'); + $this->config('dungeon_header', '0', 'int'); } if ($post['logo']) @@ -325,7 +325,7 @@ public function index($theme) } else { - $this->db->where('name', 'dungeon_logo')->delete('nf_settings'); + $this->config('dungeon_logo', '0', 'int'); } $this ->config('dungeon_header_repeat', $post['repeat']) @@ -345,7 +345,7 @@ public function index($theme) } else { - $this->db->where('name', 'dungeon_background')->delete('nf_settings'); + $this->config('dungeon_background', '0', 'int'); } $this ->config('dungeon_background_repeat', $post['repeat']) @@ -412,4 +412,4 @@ public function index($theme) /* Dungeon template 1.4 for NeoFrag Alpha 0.1.6 ./themes/dungeon/dungeon.php -*/ \ No newline at end of file +*/