Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Oliver Eglseder
lfeditor
Commits
49f273b5
Commit
49f273b5
authored
Apr 21, 2015
by
damjan
Browse files
[BUGFIX] Fixing problem with parsing in XML
parent
7eee935f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Classes/Service/FileBaseXMLService.php
Classes/Service/FileBaseXMLService.php
+1
-1
Classes/Service/FileOverrideService.php
Classes/Service/FileOverrideService.php
+6
-3
No files found.
Classes/Service/FileBaseXMLService.php
View file @
49f273b5
...
...
@@ -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
);
...
...
Classes/Service/FileOverrideService.php
View file @
49f273b5
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment