// Fix PS_CIPHER_ALGORITHM in new install

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11703 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-22 21:59:43 +00:00
parent d2f89e79ba
commit 2aeae17ba6
+2
View File
@@ -112,6 +112,8 @@ class InstallModelInstall extends InstallAbstractModel
$settings_constants['_RIJNDAEL_KEY_'] = Tools::passwdGen(mcrypt_get_key_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB));
$settings_constants['_RIJNDAEL_IV_'] = base64_encode(mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB), MCRYPT_RAND));
}
else
Configuration::updateGlobalValue('PS_CIPHER_ALGORITHM', 0);
$settings_content = "<?php\n";
foreach ($settings_constants as $constant => $value)