BUG 9902 Error uploading a new language in Zend ServerSOLVED
- Not loaded correctly. - scans all languages.
This commit is contained in:
@@ -382,7 +382,6 @@ class Content extends BaseContent {
|
||||
FROM CONTENT_BACKUP");
|
||||
$statement->executeQuery();
|
||||
|
||||
$connection = Propel::getConnection('workflow');
|
||||
$statement = $connection->prepareStatement("DROP TABLE CONTENT_BACKUP");
|
||||
$statement->executeQuery();
|
||||
|
||||
@@ -419,7 +418,7 @@ class Content extends BaseContent {
|
||||
}
|
||||
|
||||
function fastInsertContent ($ConCategory, $ConParent, $ConId, $ConLang, $ConValue) {
|
||||
$ConValue = htmlentities($ConValue, ENT_QUOTES, "UTF-8");
|
||||
$ConValue = mysql_real_escape_string($ConValue);
|
||||
$connection = Propel::getConnection('workflow');
|
||||
$statement = $connection->prepareStatement("INSERT INTO CONTENT_BACKUP (
|
||||
CON_CATEGORY, CON_PARENT, CON_ID , CON_LANG, CON_VALUE)
|
||||
|
||||
@@ -283,9 +283,8 @@ class Translation extends BaseTranslation {
|
||||
if (file_exists(PATH_CORE . "META-INF" . PATH_SEP . "translation.".$locale)) {
|
||||
G::rm_dir(PATH_DATA . "META-INF" . PATH_SEP . "translation.".$locale);
|
||||
}
|
||||
|
||||
if (file_exists(PATH_CORE . '/content/translations/processmaker.'.$locale.'.po')) {
|
||||
G::rm_dir(PATH_CORE . '/content/translations/processmaker.'.$locale.'.po');
|
||||
if (file_exists(PATH_CORE . PATH_SEP . 'content' . PATH_SEP . 'translations' . PATH_SEP . 'processmaker' . $locale . '.po')) {
|
||||
G::rm_dir(PATH_CORE . PATH_SEP . 'content' . PATH_SEP . 'translations' . PATH_SEP . 'processmaker' . $locale . '.po');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user