diff --git a/system/admin/views/clear-cache.html.php b/system/admin/views/clear-cache.html.php
index 2070ab5..2359c66 100644
--- a/system/admin/views/clear-cache.html.php
+++ b/system/admin/views/clear-cache.html.php
@@ -1,12 +1,20 @@
\ No newline at end of file
diff --git a/system/admin/views/updated-to.html.php b/system/admin/views/updated-to.html.php
index 302a5ca..fac6d15 100644
--- a/system/admin/views/updated-to.html.php
+++ b/system/admin/views/updated-to.html.php
@@ -1,5 +1,4 @@
Updated to
- []
-
-
+[]
+
\ No newline at end of file
diff --git a/system/htmly.php b/system/htmly.php
index 85c884a..9e65ee3 100644
--- a/system/htmly.php
+++ b/system/htmly.php
@@ -1251,19 +1251,12 @@ get('/admin/update', function () {
// Show the update now link
get('/admin/update/now/:csrf', function ($CSRF) {
- $files = array();
- $draft = array();
- $files = glob('content/*/blog/*.md', GLOB_NOSORT);
- $draft = glob('content/*/draft/*.md', GLOB_NOSORT);
$proper = is_csrf_proper($CSRF);
$updater = new \Kanti\HubUpdater(array(
'name' => 'danpros/htmly',
'prerelease' => !!config("prerelease"),
));
if (login() && $proper && $updater->able()) {
- if (!empty($files) || !empty($draft)) {
- migrate_old_content();
- }
$updater->update();
config('views.root', 'system/admin/views');
render('updated-to', array(