From 74b391efeee990838b5ebfee958e819ff39e1a97 Mon Sep 17 00:00:00 2001 From: Nicolas Villa Date: Tue, 26 Nov 2013 18:09:48 +0100 Subject: [PATCH] Correct link "Go to admin page" alike thelia is installed in the root of virtual host or in a subdirectory --- web/install/end.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web/install/end.php b/web/install/end.php index 9cca8ede1..8c1d1d55c 100755 --- a/web/install/end.php +++ b/web/install/end.php @@ -58,6 +58,11 @@ $fs->remove(THELIA_ROOT . '/cache/dev'); $request = \Thelia\Core\HttpFoundation\Request::createFromGlobals(); $_SESSION['install']['step'] = $step; + +// Retrieve the website url +$url = $_SERVER['PHP_SELF']; +$website_url = preg_replace("#/install/[a-z](.*)#" ,'', $url); + ?>
@@ -69,8 +74,8 @@ $_SESSION['install']['step'] = $step;

- Go to back office + Go to back office

- \ No newline at end of file +