From cf579dddc28868e1c273b7643b12179973d12b6a Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Fri, 12 Nov 2021 16:53:42 +0100 Subject: [PATCH] Removed the error override configuration and files --- application/config/routes.php | 2 +- application/controllers/Errors.php | 49 ---------------------- application/views/general/error404.php | 58 -------------------------- 3 files changed, 1 insertion(+), 108 deletions(-) delete mode 100644 application/controllers/Errors.php delete mode 100644 application/views/general/error404.php diff --git a/application/config/routes.php b/application/config/routes.php index 2302aec8..062fd67e 100644 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -43,7 +43,7 @@ require_once __DIR__ . '/../helpers/routes_helper.php'; $route['default_controller'] = 'appointments'; -$route['404_override'] = 'errors/error404'; +$route['404_override'] = ''; /* | ------------------------------------------------------------------------- diff --git a/application/controllers/Errors.php b/application/controllers/Errors.php deleted file mode 100644 index aeb759c7..00000000 --- a/application/controllers/Errors.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @copyright Copyright (c) 2013 - 2020, Alex Tselegidis - * @license https://opensource.org/licenses/GPL-3.0 - GPLv3 - * @link https://easyappointments.org - * @since v1.0.0 - * ---------------------------------------------------------------------------- */ - -/** - * Errors controller. - * - * Handles the app error related operations. - * - * @package Controllers - */ -class Errors extends EA_Controller { - /** - * Errors constructor. - */ - public function __construct() - { - parent::__construct(); - - $this->load->model('settings_model'); - } - - /** - * Display the 404 error page. - */ - public function index() - { - $this->error404(); - } - - /** - * Display the 404 error page. - */ - public function error404() - { - $this->load->view('general/error404', [ - 'company_name' => setting('company_name') - ]); - } -} diff --git a/application/views/general/error404.php b/application/views/general/error404.php deleted file mode 100644 index c9faba8e..00000000 --- a/application/views/general/error404.php +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - <?= lang('page_not_found') ?> | Easy!Appointments - - - - - - - - - - - - - - - - - - - -
-

-

- -

- - - - - - - - - - - -
- - Powered by - Easy!Appointments - -
-
- - - -