Browse Source

#971 XML: could not specify an icon as a path to a file

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3375 a333f486-631f-4898-b8df-5754b55c2be0
romainq 10 years ago
parent
commit
1d2044ab1d
1 changed files with 5 additions and 2 deletions
  1. 5 2
      setup/compiler.class.inc.php

+ 5 - 2
setup/compiler.class.inc.php

@@ -1894,8 +1894,11 @@ EOF;
 			$this->CompileLogo($oBrandingNode, $sTempTargetDir, $sFinalTargetDir, 'login_logo', 'login-logo');
 			$this->CompileLogo($oBrandingNode, $sTempTargetDir, $sFinalTargetDir, 'portal_logo', 'portal-logo');
 
-			// Cleanup the images directory (made by CompileFiles)
-			SetupUtils::rrmdir($sTempTargetDir.'/branding/images');
+			// Cleanup the images directory (eventually made by CompileFiles)
+			if (file_exists($sTempTargetDir.'/branding/images'))
+			{
+				SetupUtils::rrmdir($sTempTargetDir.'/branding/images');
+			}
 		}
 	}
 }