mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°2883 - Improve XML compiler robustness on branding logos
This commit is contained in:
@@ -2986,8 +2986,8 @@ EOF;
|
||||
*/
|
||||
protected function CompileLogo($oBrandingNode, $sTempTargetDir, $sFinalTargetDir, $sNodeName, $sTargetFile)
|
||||
{
|
||||
if (($sIcon = $oBrandingNode->GetChildText($sNodeName)) && (strlen($sIcon) > 0))
|
||||
{
|
||||
$sIcon = trim($oBrandingNode->GetChildText($sNodeName));
|
||||
if (strlen($sIcon) > 0) {
|
||||
$sSourceFile = $sTempTargetDir.'/'.$sIcon;
|
||||
$aIconName=explode(".", $sIcon);
|
||||
$sIconExtension=$aIconName[count($aIconName)-1];
|
||||
|
||||
Reference in New Issue
Block a user