diff --git a/core/routes.php b/core/routes.php index fac67f2317..a9d5387bc1 100644 --- a/core/routes.php +++ b/core/routes.php @@ -20,9 +20,6 @@ $application->registerRoutes($this, array('routes' => array( // Post installation check /** @var $this OCP\Route\IRouter */ -$this->create('post_setup_check', '/post-setup-check') - ->action('OC_Setup', 'postSetupCheck'); - // Core ajax actions // Search $this->create('search_ajax_search', '/search/ajax/search.php') diff --git a/core/setup/controller.php b/core/setup/controller.php index 5da94e83cc..02226ad9e4 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) { diff --git a/lib/private/setup.php b/lib/private/setup.php index 95e908d10e..ccf996460d 100644 --- a/lib/private/setup.php +++ b/lib/private/setup.php @@ -1,7 +1,6 @@ webdav testing now - $l = self::getTrans(); - if (OC_Util::isWebDAVWorking()) { - header("Location: ".OC::$WEBROOT.'/'); - } else { - - $error = $l->t('Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken.'); - $hint = $l->t('Please double check the installation guides.', - \OC_Helper::linkToDocs('admin-install')); - - OC_Template::printErrorPage($error, $hint); - exit(); - } - } }