Explorar el Código

Optimizations. Continuation of [r4423] and [r4471]. The optimization of the load of icons does not work depending on the itop installation directory and version of PHP (crc32 producing a negative value, not suitable for a class name).

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4485 a333f486-631f-4898-b8df-5754b55c2be0
romainq hace 8 años
padre
commit
51fb4dabcf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      application/forms.class.inc.php

+ 1 - 1
application/forms.class.inc.php

@@ -1370,7 +1370,7 @@ class RunTimeIconSelectionField extends DesignerIconSelectionField
 	{
 		$aFiles = null;
 		$sKey = $sBaseDir.'/'.$sDir;
-		$sShortKey = crc32($sKey);
+		$sShortKey = abs(crc32($sKey));
 		$sCacheFile = utils::GetCachePath().'available-icons-'.$sShortKey.'.php';
 		$sCacheClass = 'AvailableIcons_'.$sShortKey;
 		if (file_exists($sCacheFile))