mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 21:54:07 +09:00
Display release notes on the update screen (#1257)
* Display release notes on the update screen * Minor changes Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
This commit is contained in:
1 parent
ce2af27e85
commit
76aee3bd68
3 files changed
+29
-4
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -108,6 +108,7 @@
|
||||
</div>
|
||||
|
||||
<div class="body">
|
||||
{{ admin.system_release_notes|bbmd }}
|
||||
<a href="{{ 'api/admin/extension/update_core'|link }}" title="" class="btnIconLeft mr10 mt5 api-link" data-api-confirm="Make sure that you have made database and files backups before proceeding with automatic update. Click OK when you are ready to continue." data-api-msg="Update complete"><img src="images/icons/dark/cog.png" alt="" class="icon"><span>Update BoxBilling</span></a>
|
||||
</div>
|
||||
|
||||
@@ -118,10 +119,10 @@
|
||||
|
||||
<div class="body list arrowGreen">
|
||||
<ul>
|
||||
<li>Download latest BoxBilling from <a href="https://github.com/boxbilling/boxbilling/releases" target="_blank">Our Github</a></li>
|
||||
<li>Extract files at your computer</li>
|
||||
<li>Download the latest release from <a href="https://github.com/boxbilling/boxbilling/releases" target="_blank">GitHub</a></li>
|
||||
<li>Extract the files into your computer</li>
|
||||
<li>Upload (overwrite) extracted files via FTP to <strong>{{ constant('BB_PATH_ROOT') }}</strong></li>
|
||||
<li>When upload is complete, execute <a href="{{constant('BB_URL')}}bb-update.php" target="_blank">{{constant('BB_URL')}}bb-update.php</a> in your browser</li>
|
||||
<li>When the uploading is done, execute <a href="{{constant('BB_URL')}}bb-update.php" target="_blank">{{constant('BB_URL')}}bb-update.php</a> in your browser</li>
|
||||
<li>Your BoxBilling is now updated to latest version.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user