From 2376ad492574e1ac422efc7e91930667872863d6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Apr 2011 11:46:16 +0400 Subject: [PATCH] fix redirects after schema upgrade; fix logout requiring valid schema --- backend.php | 2 +- db-updater.php | 3 ++- register.php | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/backend.php b/backend.php index c78284c6..fdaf2c46 100644 --- a/backend.php +++ b/backend.php @@ -124,7 +124,7 @@ $error = sanity_check($link); - if ($error['code'] != 0) { + if ($error['code'] != 0 && $op != "logout") { print json_encode(array("error" => $error)); return; } diff --git a/db-updater.php b/db-updater.php index dca3a374..8590ee82 100644 --- a/db-updater.php +++ b/db-updater.php @@ -155,7 +155,8 @@ function confirmOP() { print "

".T_sprintf("Finished. Performed %d update(s) up to schema version %d.", $num_updates, $version)."

"; - print "
+ print " +
"; diff --git a/register.php b/register.php index 2b464dc8..86a8824c 100644 --- a/register.php +++ b/register.php @@ -148,7 +148,8 @@ if (!ENABLE_REGISTRATION) { print_error(__("New user registrations are administratively disabled.")); - print "

+ print "

+

"; return; -- 2.39.5