From 0bb01717386d39d4296b9ed4b2f3c206844f5bdd Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 7 Mar 2016 21:19:55 +0100 Subject: [PATCH] Replaced the config base_url value with the base_url() function of the URL helper. --- src/application/controllers/appointments.php | 5 ++-- src/application/views/appointments/book.php | 30 +++++++++---------- .../views/appointments/book_success.php | 20 ++++++------- src/application/views/general/error404.php | 14 ++++----- src/application/views/general/test.php | 4 +-- .../views/user/forgot_password.php | 14 ++++----- src/application/views/user/login.php | 18 +++++------ src/application/views/user/logout.php | 8 ++--- src/application/views/user/no_privileges.php | 8 ++--- 9 files changed, 59 insertions(+), 62 deletions(-) diff --git a/src/application/controllers/appointments.php b/src/application/controllers/appointments.php index 7636e11a..356f0d15 100755 --- a/src/application/controllers/appointments.php +++ b/src/application/controllers/appointments.php @@ -90,8 +90,7 @@ class Appointments extends CI_Controller { $view = array( 'message_title' => $this->lang->line('appointment_not_found'), 'message_text' => $this->lang->line('appointment_does_not_exist_in_db'), - 'message_icon' => $this->config->item('base_url') - . '/assets/img/error.png' + 'message_icon' => base_url('assets/img/error.png') ); $this->load->view('appointments/message', $view); return; @@ -222,7 +221,7 @@ class Appointments extends CI_Controller { $view = array( 'message_title' => $this->lang->line('appointment_cancelled_title'), 'message_text' => $this->lang->line('appointment_cancelled'), - 'message_icon' => $this->config->item('base_url') . '/assets/img/success.png' + 'message_icon' => base_url('assets/img/success.png') ); if (isset($exceptions)) { diff --git a/src/application/views/appointments/book.php b/src/application/views/appointments/book.php index 5050828d..4a6dd1d7 100644 --- a/src/application/views/appointments/book.php +++ b/src/application/views/appointments/book.php @@ -15,23 +15,23 @@ + href=""> + href=""> + href=""> + href=""> + href=""> config->item('base_url'); ?>/assets/ext/jquery/jquery.min.js"> + src=""> + src=""> + src=""> + src=""> + src=""> + src=""> + href=""> + href=""> , availableProviders : , - baseUrl : config->item('base_url') . '"'; ?>, + baseUrl : config->item('base_url')); ?>, manageMode : , dateFormat : , appointmentData : , @@ -433,7 +433,7 @@ + src=""> diff --git a/src/application/views/appointments/book_success.php b/src/application/views/appointments/book_success.php index b10289f5..9614837e 100755 --- a/src/application/views/appointments/book_success.php +++ b/src/application/views/appointments/book_success.php @@ -13,9 +13,9 @@ // ------------------------------------------------------------ ?> + href=""> + href=""> + href=""> + href="">
@@ -38,7 +38,7 @@ col-lg-offset-2 col-lg-8">
- +
config->item('base_url'); ?>/assets/ext/jquery/jquery.min.js"> + src=""> + src=""> + src=""> @@ -114,11 +114,11 @@ + src=""> + src=""> diff --git a/src/application/views/general/error404.php b/src/application/views/general/error404.php index a6f5e43d..5b86ae78 100644 --- a/src/application/views/general/error404.php +++ b/src/application/views/general/error404.php @@ -15,7 +15,7 @@ + href=""> config->item('base_url'); ?>/assets/img/favicon.ico"> + href=""> config->item('base_url'); ?>/assets/ext/jquery/jquery.min.js"> + src=""> + src=""> + src=""> + src=""> - + lang->line('book_appointment_title'); ?> diff --git a/src/application/views/general/test.php b/src/application/views/general/test.php index 498e4fa9..3b585e44 100644 --- a/src/application/views/general/test.php +++ b/src/application/views/general/test.php @@ -1,4 +1,4 @@ - + + src=""> + src=""> + src=""> + src=""> diff --git a/src/application/views/user/login.php b/src/application/views/user/login.php index 1646546c..ff08ea81 100644 --- a/src/application/views/user/login.php +++ b/src/application/views/user/login.php @@ -11,29 +11,29 @@ + src=""> + src=""> + src=""> + href=""> + href=""> + href="">