From 1f9024763d9224c4cd9a181bac27e6b9f12ad672 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 18 Sep 2024 14:14:53 -0400 Subject: refactor --- src/web/core/_model.php | 51 ------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/web/core/_model.php (limited to 'src/web/core/_model.php') diff --git a/src/web/core/_model.php b/src/web/core/_model.php deleted file mode 100644 index 57127de..0000000 --- a/src/web/core/_model.php +++ /dev/null @@ -1,51 +0,0 @@ -load = $load; - if ($main) { - $this->main = $this; - } else { - $this->main = $this->load->model('main'); - } - $this->db = $this->load->db(); - } - - /** - * @returns the base model data - */ - public function get_data(): ?array { - $data = array(); - - $info = $this->main->info; - $app = $info['app']; - - $data['title'] = lang('first_name'); - $data['desc'] = lang('default_short_desc'); - $data['css'] = array(); - - $style = $GLOBALS['style']; - if (isset($style[$app])) { - $css = $style[$app]; - if (!is_array($css)) - $css = array($css); - $data['css'] = $css; - } - - return $data; - } -} -- cgit v1.2.3-freya