From 5706b93cf1a7e9ed719d292babf01f2fb6e2fb6b Mon Sep 17 00:00:00 2001 From: Kanti Date: Sat, 13 Dec 2014 19:02:04 +0100 Subject: [PATCH] [TASK] integrated new HubUpdater --- system/admin/views/updated-to.html.php | 8 +++----- system/htmly.php | 2 +- system/includes/functions.php | 6 ++---- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/system/admin/views/updated-to.html.php b/system/admin/views/updated-to.html.php index c11dc91..28bbbd1 100644 --- a/system/admin/views/updated-to.html.php +++ b/system/admin/views/updated-to.html.php @@ -1,5 +1,3 @@ -printOne(); - -?> \ No newline at end of file +

Updated to

+

[]

+

diff --git a/system/htmly.php b/system/htmly.php index 77074d6..22d9a95 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -1226,7 +1226,7 @@ get('/admin/update/now/:csrf', function ($CSRF) { config('views.root', 'system/admin/views'); render('updated-to', array( 'head_contents' => head_contents('Updated - ' . blog_title(), blog_description(), site_url()), - 'updater' => $updater, + 'info' => $updater->getCurrentInfo(), )); } else { $login = site_url() . 'login'; diff --git a/system/includes/functions.php b/system/includes/functions.php index 4099b1d..7b2933c 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1,8 +1,5 @@ Backup'; echo '
  • Clear cache
  • '; if ($updater->able()) { - echo '
  • Update to ' . $updater->getName() . '
  • '; + $info = $updater->getNewestInfo(); + echo '
  • Update to ' . $info['tag_name'] . '
  • '; } echo '
  • Logout
  • ';