[TASK] integrated new HubUpdater

This commit is contained in:
Kanti 2014-12-13 19:02:04 +01:00
commit 5706b93cf1
3 changed files with 6 additions and 10 deletions

View file

@ -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>';