From 0c1f40c3bc43fd2046fb2f855363ea7be848f2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Mel=C3=ADk?= Date: Tue, 28 Jan 2025 18:40:24 +0100 Subject: [PATCH] Pull duplicated page title to common place --- application/controllers/User.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/controllers/User.php b/application/controllers/User.php index 5a02e3d53..bb4021b47 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -371,10 +371,10 @@ class User extends CI_Controller { // Get timezones $data['timezones'] = $this->user_model->timezones(); + $data['page_title'] = __("Edit User"); + if ($this->form_validation->run() == FALSE) { - $data['page_title'] = __("Edit User"); - $q = $query->row(); $data['id'] = $q->user_id; @@ -806,7 +806,6 @@ class User extends CI_Controller { } return; } - $data['page_title'] = __("Edit User"); $this->load->view('interface_assets/header', $data); $data['user_name'] = $this->input->post('user_name', true);