From f12d407acbfdf5c44e6b6d123ebd9fc9419d97bf Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 17 Jan 2012 15:28:40 +0000 Subject: [PATCH] // Fix wrong shop URL during install #PSFV-377 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12487 b9a71923-0436-4b27-9f14-aed3839534dd --- install-new/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-new/init.php b/install-new/init.php index c75399a9f..f186f242f 100644 --- a/install-new/init.php +++ b/install-new/init.php @@ -36,7 +36,7 @@ define('_PS_INSTALL_MODELS_PATH_', _PS_INSTALL_PATH_.'models/'); define('_PS_INSTALL_LANGS_PATH_', _PS_INSTALL_PATH_.'langs/'); define('_PS_INSTALL_FIXTURES_PATH_', _PS_INSTALL_PATH_.'fixtures/'); -define('__PS_BASE_URI__', str_replace('//', '/', '/'.trim(str_replace('\\', '/', preg_replace('#(/|\\\)(install(-dev|-new)?)$#', '/', dirname($_SERVER['REQUEST_URI']))), '/').'/')); +define('__PS_BASE_URI__', str_replace('//', '/', '/'.trim(preg_replace('#/(install(-dev|-new)?)$#', '/', str_replace('\\', '/', dirname($_SERVER['REQUEST_URI']))), '/').'/')); define('_THEME_NAME_', 'prestashop'); require_once dirname(_PS_INSTALL_PATH_).'/config/defines.inc.php'; require_once dirname(_PS_INSTALL_PATH_).'/config/defines_uri.inc.php';