From 0ae2bb2a69c3691c2301fc66b46624447d0c8d32 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Apr 2011 11:52:17 +0400 Subject: db-updater: properly handle situation of newer active schema; utility scripts: fix incorrect logo --- db-updater.php | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'db-updater.php') diff --git a/db-updater.php b/db-updater.php index 8590ee82a..edee3bc83 100644 --- a/db-updater.php +++ b/db-updater.php @@ -36,7 +36,7 @@ function confirmOP() { } - +

@@ -92,10 +92,8 @@ function confirmOP() { "; } - return; - } + } else if ($version <= $latest_version && !$op) { - if (!$op) { print_warning(__("Please backup your database before proceeding.")); print "

" . T_sprintf("Your Tiny Tiny RSS database needs update to the latest version (%d to %d).", $version, $latest_version) . "

"; @@ -160,6 +158,20 @@ function confirmOP() { "; + } else if ($version >= $latest_version) { + + print_error(__("Your database schema is from a newer version of Tiny Tiny RSS.")); + + print "

" . T_sprintf("Found schema version: %d, required: %d.", $version, $latest_version) . "

"; + + print "

" . __("Schema upgrade impossible. Please update Tiny Tiny RSS files to the newer version and continue.") . "

"; + + print "
+ + +
"; + + } ?> -- cgit v1.2.3