From 3582f7bd09f81e1aadb583ab0d36fb0cbc695514 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Wed, 6 Feb 2013 17:54:20 +0100 Subject: Execute the post setup check after finishing the setup --- core/routes.php | 4 ++++ core/setup.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/routes.php b/core/routes.php index 7408858b107..2527816b662 100644 --- a/core/routes.php +++ b/core/routes.php @@ -6,6 +6,10 @@ * See the COPYING-README file. */ +// Post installation check +$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.php b/core/setup.php index 66b8cf378bd..f16385466cb 100644 --- a/core/setup.php +++ b/core/setup.php @@ -43,7 +43,7 @@ if(isset($_POST['install']) AND $_POST['install']=='true') { OC_Template::printGuestPage("", "installation", $options); } else { - header("Location: ".OC::$WEBROOT.'/'); + header( 'Location: '.OC_Helper::linkToRoute( 'post_setup_check' )); exit(); } } -- cgit v1.2.3