From ad5aa7588dec7277a8811a7a3cfb6af5443b313f Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 29 Apr 2016 15:20:45 +0200 Subject: [PATCH] Fix version in Grav update message --- classes/controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/controller.php b/classes/controller.php index 7fcaa46a..d7d4ae24 100644 --- a/classes/controller.php +++ b/classes/controller.php @@ -1194,6 +1194,7 @@ class AdminController return false; } + $gpm = \Grav\Plugin\Admin\Gpm::GPM(); $result = \Grav\Plugin\Admin\Gpm::selfupgrade(); if ($result) { @@ -1201,7 +1202,7 @@ class AdminController 'status' => 'success', 'type' => 'updategrav', 'version' => GRAV_VERSION, - 'message' => $this->admin->translate('PLUGIN_ADMIN.GRAV_WAS_SUCCESSFULLY_UPDATED_TO') . ' ' . GRAV_VERSION + 'message' => $this->admin->translate('PLUGIN_ADMIN.GRAV_WAS_SUCCESSFULLY_UPDATED_TO') . ' ' . $gpm->grav->getVersion() ]; } else { $this->admin->json_response = [