BUG 7646 Solved the problem escaping the character "'"
This commit is contained in:
@@ -2205,6 +2205,9 @@ $output = $outputHeader.$output;
|
||||
}
|
||||
|
||||
if ( isset ( $translation[$msgID] ) ){
|
||||
$arraySearch = array("'");
|
||||
$arrayReplace = array("\\'");
|
||||
|
||||
$translationString = preg_replace("[\n|\r|\n\r]", ' ', $translation[$msgID]);
|
||||
|
||||
if( isset($data) && is_array($data) ) {
|
||||
@@ -2213,6 +2216,8 @@ $output = $outputHeader.$output;
|
||||
}
|
||||
}
|
||||
|
||||
$translationString = str_replace($arraySearch, $arrayReplace, $translationString);
|
||||
|
||||
return $translationString;
|
||||
} else {
|
||||
if( defined("UNTRANSLATED_MARK") ) {
|
||||
|
||||
Reference in New Issue
Block a user