From: Andrew Dolgov Date: Wed, 20 Apr 2011 07:46:16 +0000 (+0400) Subject: fix redirects after schema upgrade; fix logout requiring valid schema X-Git-Tag: 1.5.3~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2376ad492574e1ac422efc7e91930667872863d6;p=tt-rss.git fix redirects after schema upgrade; fix logout requiring valid schema --- 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;