From 218ce59de6e0ab3aff39f3d1b4e7a7f3f9525ba6 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 19 Aug 2013 10:04:23 +0200 Subject: [PATCH] [-] Installer : added ob_start() (required with the cookie mode when debug mode is activated) --- install-dev/index.php | 11 ++++------- install-dev/init.php | 8 +++++--- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/install-dev/index.php b/install-dev/index.php index 995a182ca..67ad72e8f 100644 --- a/install-dev/index.php +++ b/install-dev/index.php @@ -24,14 +24,11 @@ * International Registered Trademark & Property of PrestaShop SA */ -require_once 'init.php'; +require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'init.php'); -try -{ - require_once _PS_INSTALL_PATH_.'classes/controllerHttp.php'; +try { + require_once(_PS_INSTALL_PATH_.'classes'.DIRECTORY_SEPARATOR.'controllerHttp.php'); InstallControllerHttp::execute(); -} -catch (PrestashopInstallerException $e) -{ +} catch (PrestashopInstallerException $e) { $e->displayMessage(); } diff --git a/install-dev/init.php b/install-dev/init.php index cf0d611ab..d55d22b87 100644 --- a/install-dev/init.php +++ b/install-dev/init.php @@ -24,6 +24,8 @@ * International Registered Trademark & Property of PrestaShop SA */ +ob_start(); + // Check PHP version if (version_compare(PHP_VERSION, '5.1.3', '<')) die('You need at least PHP 5.1.3 to run PrestaShop. Your current PHP version is '.PHP_VERSION); @@ -37,7 +39,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/'); -require_once(_PS_INSTALL_PATH_ . 'install_version.php'); +require_once(_PS_INSTALL_PATH_.'install_version.php'); // we check if theses constants are defined // in order to use init.php in upgrade.php script @@ -71,8 +73,8 @@ if (!@ini_get('date.timezone')) ini_set('magic_quotes_runtime', 0); // Try to improve memory limit if it's under 32M -if (psinstall_get_memory_limit() < psinstall_get_octets('32M')) - ini_set('memory_limit', '32M'); +if (psinstall_get_memory_limit() < psinstall_get_octets('64M')) + ini_set('memory_limit', '64M'); function psinstall_get_octets($option) {