diff --git a/setup/compiler.class.inc.php b/setup/compiler.class.inc.php index 56e995bc3..45f83b21b 100644 --- a/setup/compiler.class.inc.php +++ b/setup/compiler.class.inc.php @@ -1348,7 +1348,7 @@ EOF $sMainColor = $this->GetMandatoryPropString($oStyleNode, 'main_color'); $sComplementaryColor = $this->GetMandatoryPropString($oStyleNode, 'complementary_color'); $sDecorationClasses = $this->GetPropString($oStyleNode, 'decoration_classes', ''); - $aValues[] = $sCode; + $aValues[] = self::RemoveSurroundingQuotes($sCode); $aStyledValues[] = "$sCode => new ormStyle($sMainColor, $sComplementaryColor, $sDecorationClasses)"; } $sValues = '"'.implode(',', $aValues).'"'; @@ -3260,4 +3260,14 @@ XML; EOF; $this->WriteFile($sResultFile, $sFileHeader.$sCompiledCode); } + + private static function RemoveSurroundingQuotes($sValue) + { + if (utils::StartsWith($sValue, '\'') && utils::EndsWith($sValue, '\'')) + { + $sValue = substr($sValue, 1, -1); + } + + return $sValue; + } }