diff --git a/src/application/controllers/Backend.php b/src/application/controllers/Backend.php index da08157c..77fcd5d4 100644 --- a/src/application/controllers/Backend.php +++ b/src/application/controllers/Backend.php @@ -320,16 +320,14 @@ class Backend extends CI_Controller { throw new Exception($this->migration->error_string()); } - $this->output - ->set_content_type('application/json') - ->set_output(json_encode(AJAX_SUCCESS)); + $view = ['success' => true]; } catch (Exception $exc) { - $this->output - ->set_content_type('application/json') - ->set_output(json_encode(['exceptions' => [exceptionToJavaScript($exc)]])); + $view = ['success' => false, 'exception' => $exc->getMessage()]; } + + $this->load->view('general/update', $view); } /** diff --git a/src/application/views/general/update.php b/src/application/views/general/update.php new file mode 100644 index 00000000..32981e4f --- /dev/null +++ b/src/application/views/general/update.php @@ -0,0 +1,78 @@ + + + + Easy!Appointments - Update + + + + + + + + + + + +
+
+ + Easy!Appointments Installation Banner + +
+
+ +
+ +

+ The database was updated successfully! +

+ +

+ You can now use the latest Easy!Appointments version. +

+ +

+ There was an error during the update process! +

+ +

+ Please restore your database backup. +

+ +
+ Error Message: +
+ +
+ + + +