From 622a4e9390baf5c19c9e4512717d72a424479c4f Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 7 Dec 2021 11:00:13 +0100 Subject: [PATCH] Moved the about controller and renamed the view file --- application/controllers/{settings => }/About.php | 6 +++--- .../views/pages/{settings/about_page.php => about.php} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename application/controllers/{settings => }/About.php (93%) rename application/views/pages/{settings/about_page.php => about.php} (100%) diff --git a/application/controllers/settings/About.php b/application/controllers/About.php similarity index 93% rename from application/controllers/settings/About.php rename to application/controllers/About.php index 6891d5f2..3e60a6b3 100644 --- a/application/controllers/settings/About.php +++ b/application/controllers/About.php @@ -57,9 +57,9 @@ class About extends EA_Controller { */ public function index() { - session(['dest_url' => site_url('services')]); + session(['dest_url' => site_url('about')]); - if (cannot('view', 'services')) + if (cannot('view', 'user_settings')) { show_error('Forbidden', 403); } @@ -68,7 +68,7 @@ class About extends EA_Controller { $role_slug = session('role_slug'); - $this->load->view('pages/settings/about_page', [ + $this->load->view('pages/about', [ 'page_title' => lang('settings'), 'active_menu' => PRIV_SYSTEM_SETTINGS, 'user_display_name' => $this->accounts->get_user_display_name($user_id), diff --git a/application/views/pages/settings/about_page.php b/application/views/pages/about.php similarity index 100% rename from application/views/pages/settings/about_page.php rename to application/views/pages/about.php