diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-01-14 22:32:10 +0300 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-01-14 22:59:46 +0300 |
commit | 22768769c3f29f9952110f86a032e4bf3a4bf460 (patch) | |
tree | 3eab216005473c1ae1f7fc5bf208708656dfd0b4 /core/Controller | |
parent | 206967a4fbf217a4ec69bb8438194e5a40e1cf12 (diff) |
Improve installation pages
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/SetupController.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/core/Controller/SetupController.php b/core/Controller/SetupController.php index c89709012d1..620b4f12df7 100644 --- a/core/Controller/SetupController.php +++ b/core/Controller/SetupController.php @@ -78,7 +78,7 @@ class SetupController { $options = array_merge($opts, $post, $errors); $this->display($options); } else { - $this->finishSetup(isset($post['install-recommended-apps'])); + $this->finishSetup(); } } else { $options = array_merge($opts, $post); @@ -106,7 +106,7 @@ class SetupController { \OC_Template::printGuestPage('', 'installation', $parameters); } - private function finishSetup(bool $installRecommended) { + private function finishSetup() { if (file_exists($this->autoConfigFile)) { unlink($this->autoConfigFile); } @@ -118,13 +118,8 @@ class SetupController { } } - if ($installRecommended) { - header('Location: ' . \OC::$server->getURLGenerator()->getAbsoluteURL('index.php/core/apps/recommended')); - exit(); - } else { - header('Location: ' . \OC::$server->getURLGenerator()->linkToDefaultPageUrl()); - exit(); - } + header('Location: ' . \OC::$server->getURLGenerator()->getAbsoluteURL('index.php/core/apps/recommended')); + exit(); } public function loadAutoConfig($post) { |