summaryrefslogtreecommitdiffstats
path: root/core/setup
diff options
context:
space:
mode:
Diffstat (limited to 'core/setup')
-rw-r--r--core/setup/controller.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/core/setup/controller.php b/core/setup/controller.php
index 5da94e83ccc..02226ad9e42 100644
--- a/core/setup/controller.php
+++ b/core/setup/controller.php
@@ -22,12 +22,10 @@ class Controller {
if(count($e) > 0) {
$options = array_merge($opts, $post, $errors);
$this->display($options);
- }
- else {
+ } else {
$this->finishSetup();
}
- }
- else {
+ } else {
$options = array_merge($opts, $post);
$this->display($options);
}
@@ -53,8 +51,7 @@ class Controller {
}
public function finishSetup() {
- header( 'Location: '.\OC_Helper::linkToRoute( 'post_setup_check' ));
- exit();
+ \OC_Util::redirectToDefaultPage();
}
public function loadAutoConfig($post) {