PARTNER CHANGES; applying a fix when a first environment is created

This commit is contained in:
Erik Amaru Ortiz
2013-05-29 16:11:13 -04:00
parent eab5018609
commit 21378b7da0

View File

@@ -1354,10 +1354,15 @@ class Installer extends Controller
public function setConfiguration()
{
$query = <<<EOL
INSERT INTO CONFIGURATION (CFG_UID, CFG_VALUE) VALUES
('ENVIRONMENT_SETTINGS', 'a:4:{s:26:"login_enableForgotPassword";b:0;s:27:"login_enableVirtualKeyboard";b:0;s:21:"login_defaultLanguage";s:5:"pt-BR";s:10:"dateFormat";s:15:"d \\d\\e F \\d\\e Y";}');
EOL;
//a:4:{s:26:"login_enableForgotPassword";b:0;s:27:"login_enableVirtualKeyboard";b:0;s:21:"login_defaultLanguage";s:5:"pt-BR";s:10:"dateFormat";s:15:"d \\d\\e F \\d\\e Y";}
$value = array(
'login_defaultLanguage' => "pt-BR",
"dateFormat" => 'd \d\e F \d\e Y'
);
$value = serialize($value);
$query = "INSERT INTO CONFIGURATION (CFG_UID, CFG_VALUE) VALUES ('ENVIRONMENT_SETTINGS', '".mysql_real_escape_string($value)."')";
$this->mysqlQuery($query);
}