A better update success message. Update the version in the footer.

This commit is contained in:
Flavio Copes
2015-08-06 17:23:08 +02:00
parent 66764b2255
commit 7b705d3595
3 changed files with 13 additions and 14 deletions

View File

@@ -703,19 +703,11 @@ class AdminController
$result = \Grav\Plugin\Admin\Gpm::selfupgrade();
if ($result) {
$this->admin->json_response = ['status' => 'success', 'message' => 'Everything updated'];
$this->admin->json_response = ['status' => 'success', 'message' => 'Grav was successfully updated to '];
} else {
$this->admin->json_response = ['status' => 'error', 'message' => 'Updates failed'];
$this->admin->json_response = ['status' => 'error', 'message' => 'Grav update failed'];
}
if ($result) {
$this->admin->setMessage("Installation successful.", 'info');
} else {
$this->admin->setMessage("Installation failed.", 'error');
}
//$this->post = array('_redirect' => $this->view . '/' . $this->route);
return true;
}