// Set shop name entered during install instead of Default
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12563 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -29,6 +29,11 @@ class InstallControllerHttpProcess extends InstallControllerHttp
|
||||
{
|
||||
const SETTINGS_FILE = 'config/settings.inc.php';
|
||||
|
||||
/**
|
||||
* @var InstallModelInstall
|
||||
*/
|
||||
protected $model_install;
|
||||
|
||||
public function init()
|
||||
{
|
||||
require_once _PS_INSTALL_MODELS_PATH_.'install.php';
|
||||
@@ -101,7 +106,11 @@ class InstallControllerHttpProcess extends InstallControllerHttp
|
||||
$this->initializeContext();
|
||||
|
||||
// @todo remove true in populateDatabase for 1.5.0 RC version
|
||||
if (!$this->model_install->populateDatabase(true) || $this->model_install->getErrors())
|
||||
$result = $this->model_install->populateDatabase(true, array(
|
||||
'shop_name' => $this->session->shop_name
|
||||
));
|
||||
|
||||
if (!$result || $this->model_install->getErrors())
|
||||
$this->ajaxJsonAnswer(false, $this->model_install->getErrors());
|
||||
$this->session->xml_loader_ids = $this->model_install->xml_loader_ids;
|
||||
$this->ajaxJsonAnswer(true);
|
||||
|
||||
Reference in New Issue
Block a user