Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-01-14 22:32:10 +0300
committernextcloud-command <nextcloud-command@users.noreply.github.com>2022-01-19 03:42:55 +0300
commit2063c586233a647b82279cc76780107d8818178e (patch)
tree66f4bd69be6b32b33b1d5d767a5871de2f4a1d40 /core/Controller
parent49a8a8fa982a8b9505c6df64b44443c9a4457090 (diff)
Improve installation pages
Signed-off-by: Christopher Ng <chrng8@gmail.com> (cherry picked from commit 22768769c3f29f9952110f86a032e4bf3a4bf460) Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/SetupController.php13
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) {