Commit 49f273b5 authored by damjan's avatar damjan
Browse files

[BUGFIX] Fixing problem with parsing   in XML

parent 7eee935f
......@@ -199,7 +199,7 @@ class FileBaseXMLService extends FileBaseService {
if (SgLib::checkForCdataInString($value)) {
$simpleSubNode = $xmlElement->addChildCData($tagName, $value);
} else {
$simpleSubNode = $xmlElement->addChild($tagName, $value);
$simpleSubNode = $xmlElement->addChild($tagName, htmlspecialchars($value));
}
if ($indexAttributeValue !== NULL) {
$simpleSubNode->addAttribute('index', $indexAttributeValue);
......
......@@ -202,9 +202,12 @@ class FileOverrideService extends FileBaseXMLService {
}
}
foreach ($this->localLang as $lang => $langData) {
foreach ($langData as $constKey => $constValue) {
if (isset($langData[$constKey])) {
foreach ($this->localLang as $language => $languageData) {
if (!is_array($languageData)) {
continue;
}
foreach ($languageData as $constKey => $constValue) {
if (isset($languageData[$constKey])) {
return TRUE;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment