mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 13:06:22 +05:30
[TASK] integrated new HubUpdater
This commit is contained in:
parent
e9566552c6
commit
5706b93cf1
3 changed files with 6 additions and 10 deletions
|
|
@ -1,8 +1,5 @@
|
|||
<?php
|
||||
|
||||
// Change this to your timezone
|
||||
date_default_timezone_set('Asia/Jakarta');
|
||||
|
||||
use \Michelf\MarkdownExtra;
|
||||
use \Suin\RSSWriter\Feed;
|
||||
use \Suin\RSSWriter\Channel;
|
||||
|
|
@ -1667,7 +1664,8 @@ EOF;
|
|||
echo '<li><a href="' . $base . 'admin/backup">Backup</a></li>';
|
||||
echo '<li><a href="' . $base . 'admin/clear-cache">Clear cache</a></li>';
|
||||
if ($updater->able()) {
|
||||
echo '<li><a href="' . $base . 'admin/update/now/' . $CSRF . '">Update to ' . $updater->getName() . '</a></li>';
|
||||
$info = $updater->getNewestInfo();
|
||||
echo '<li><a href="' . $base . 'admin/update/now/' . $CSRF . '">Update to ' . $info['tag_name'] . '</a></li>';
|
||||
}
|
||||
echo '<li><a href="' . $base . 'logout">Logout</a></li>';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue