diff --git a/src/bb-library/Box/Update.php b/src/bb-library/Box/Update.php index ba3fed807..b31e98701 100644 --- a/src/bb-library/Box/Update.php +++ b/src/bb-library/Box/Update.php @@ -44,7 +44,20 @@ class Box_Update } /** - * Return latest version number + * Returns latest release notes + * @return string + */ + public function getLatestReleaseNotes() + { + $response = $this->_getLatestVersionInfo(); + if(!isset($response['body'])){ + return "**Error: Release info unavailable**"; + } + return $response['body']; + } + + /** + * Returns latest version number * @return string */ public function getLatestVersion() diff --git a/src/bb-modules/System/Api/Admin.php b/src/bb-modules/System/Api/Admin.php index 945b4ec17..cf3cc43fb 100644 --- a/src/bb-modules/System/Api/Admin.php +++ b/src/bb-modules/System/Api/Admin.php @@ -162,4 +162,15 @@ class Admin extends \Api_Abstract { return $this->getService()->clearCache(); } + + /** + * Gets the latest release notes. + * + * @return string + */ + public function release_notes() + { + $updater = $this->di['updater']; + return $updater->getLatestReleaseNotes(); + } } diff --git a/src/bb-themes/admin_default/html/mod_extension_index.phtml b/src/bb-themes/admin_default/html/mod_extension_index.phtml index 5887b02e9..1894d3549 100644 --- a/src/bb-themes/admin_default/html/mod_extension_index.phtml +++ b/src/bb-themes/admin_default/html/mod_extension_index.phtml @@ -108,6 +108,7 @@
+ {{ admin.system_release_notes|bbmd }} Update BoxBilling
@@ -118,10 +119,10 @@