summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2013-02-08 09:03:57 +0100
committershadlaws <shad@shadlaws.com>2013-02-08 09:03:57 +0100
commit2dc97fab053996dcb5fe743329e1b786ca43712d (patch)
treeb2a97fd42b98e7d8f2303886a74af48f6dc18c7c /modules/gallery/controllers
parent40c5cba2dccdb217bd93274f65d16fd5558257fe (diff)
#1993 - Remove "failed" query string from upgrader redirect if there are no errors.
- Changed redirect if it finished without failures. - No change to Upgrader_Controller::index(), since its behavior with an empty vs. undefined failed query is identical.
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r--modules/gallery/controllers/upgrader.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gallery/controllers/upgrader.php b/modules/gallery/controllers/upgrader.php
index e60385d9..d3c6e2ec 100644
--- a/modules/gallery/controllers/upgrader.php
+++ b/modules/gallery/controllers/upgrader.php
@@ -107,7 +107,11 @@ class Upgrader_Controller extends Controller {
print "Upgrade complete\n";
}
} else {
- url::redirect("upgrader?failed=" . join(",", $failed));
+ if ($failed) {
+ url::redirect("upgrader?failed=" . join(",", $failed));
+ } else {
+ url::redirect("upgrader");
+ }
}
}
}