diff --git a/system/htmly.php b/system/htmly.php index 71092a9..391b6d5 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -1228,7 +1228,10 @@ get('/feed/opml', function() { get('/admin/update/now/:csrf', function($CSRF) { $proper = is_csrf_proper($CSRF); - $updater = new \Kanti\Updater; + $updater = new \Kanti\Updater(array( + 'name' => 'danpros/htmly', + 'prerelease' => !!config("prerelease"), + )); if (login() && $proper && $updater->able()) { $updater->update(); config('views.root', 'system/admin/views'); diff --git a/system/includes/functions.php b/system/includes/functions.php index 2afe7ea..f381a31 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1624,7 +1624,7 @@ function toolbar() { $updater = new \Kanti\Updater(array( 'name' => 'danpros/htmly', - 'prerelease' => config("prerelease"), + 'prerelease' => !!config("prerelease"), )); echo <<