소스 검색

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 8 년 전
부모
커밋
51fb4dabcf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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))