diff --git a/src/application/config/config.php b/src/application/config/config.php index 0dc05abb..985c454b 100644 --- a/src/application/config/config.php +++ b/src/application/config/config.php @@ -19,8 +19,19 @@ include dirname(dirname(dirname(__FILE__))) . '/configuration.php'; */ require_once dirname(dirname(dirname(__FILE__))) . '/configuration.php'; $config['base_url'] = SystemConfiguration::$base_url; + +/* +|-------------------------------------------------------------------------- +| Easy!Appointments Configuration +|-------------------------------------------------------------------------- +| +| Declare some of the global config values of Easy!Appointments. +| the global "config" variable. +| +*/ $config['ea_version'] = '0.6'; // This must be changed manually. $config['ea_release_title'] = 'Alpha'; // Leave empty for no title or add BETA, TEST etc ... +$config['ea_google_sync_feature'] = SystemConfiguration::$google_sync_feature; /* |-------------------------------------------------------------------------- diff --git a/src/application/libraries/Unit_tests/drivers/Unit_tests_admins_model.php b/src/application/libraries/Unit_tests/drivers/Unit_tests_admins_model.php index 8dd0e144..dedbc25e 100644 --- a/src/application/libraries/Unit_tests/drivers/Unit_tests_admins_model.php +++ b/src/application/libraries/Unit_tests/drivers/Unit_tests_admins_model.php @@ -293,7 +293,7 @@ class Unit_tests_admins_model extends CI_Driver { $model_batch = $this->ci->admins_model->get_batch(array('id' => $admin['id'])); $db_batch = $this->ci->db->get_where('ea_users', array('id' => $admin['id']))->result_array(); foreach($db_batch as &$admin) { - $admin['settings'] = []; + $admin['settings'] = array(); } $this->ci->unit->run($model_batch, $db_batch, 'Test if get_batch() with where clause ' @@ -311,7 +311,7 @@ class Unit_tests_admins_model extends CI_Driver { $admin = $this->default_admin; $this->ci->db->insert('ea_users', $admin); $admin['id'] = intval($this->ci->db->insert_id()); - $admin['settings'] = []; + $admin['settings'] = array(); $model_admin = $this->ci->admins_model->get_row($admin['id']); $this->ci->unit->run($model_admin, $admin, 'Test if get_row() has successfully ' diff --git a/src/application/libraries/notifications.php b/src/application/libraries/notifications.php index 38d30124..4909a9f3 100644 --- a/src/application/libraries/notifications.php +++ b/src/application/libraries/notifications.php @@ -99,7 +99,7 @@ class Notifications { $mail->Body = $email_html; if (!$mail->Send()) { - throw new Exception('Email could not been sent. ' . 'Mailer Error (Line ' + throw new Exception('Email could not been sent. Mailer Error (Line ' . __LINE__ . '): ' . $mail->ErrorInfo); } diff --git a/src/application/views/appointments/book.php b/src/application/views/appointments/book.php index 264fb3da..4b3b4493 100644 --- a/src/application/views/appointments/book.php +++ b/src/application/views/appointments/book.php @@ -179,7 +179,7 @@ } if ($has_category) { - $grouped_services = []; + $grouped_services = array(); foreach($available_services as $service) { if ($service['category_id'] != NULL) { @@ -193,7 +193,7 @@ // We need the uncategorized services at the end of the list so // we will use another iteration only for the uncategorized services. - $grouped_services['uncategorized'] = []; + $grouped_services['uncategorized'] = array(); foreach($available_services as $service) { if ($service['category_id'] == NULL) { $grouped_services['uncategorized'][] = $service; diff --git a/src/application/views/appointments/book_success.php b/src/application/views/appointments/book_success.php index 5d66318f..e6df0eba 100644 --- a/src/application/views/appointments/book_success.php +++ b/src/application/views/appointments/book_success.php @@ -186,10 +186,12 @@

Your appointment has been successfully registered!

An email with the appointment details has been sent to you.

+ config->item('ea_google_sync_feature')) { ?> +