From 14c2872a9ce91a7189b3f36a1470e5eadb09de7a Mon Sep 17 00:00:00 2001
From: xue <>
Date: Tue, 13 Dec 2005 13:47:45 +0000
Subject:

---
 framework/Web/UI/TAssetManager.php | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

(limited to 'framework')

diff --git a/framework/Web/UI/TAssetManager.php b/framework/Web/UI/TAssetManager.php
index dfc1fa53..78b84177 100644
--- a/framework/Web/UI/TAssetManager.php
+++ b/framework/Web/UI/TAssetManager.php
@@ -180,17 +180,7 @@ class TAssetManager extends TModule
 	 */
 	private function hash($dir)
 	{
-		$num = sprintf('%u', crc32($dir));
-		$base = 62;
-		$index = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
-		$out = '';
-		for ( $t = floor( log10( $num ) / log10( $base ) ); $t >= 0; $t-- ) 
-		{
-			$a = floor( $num / pow( $base, $t ) );
-			$out = $out . substr( $index, $a, 1 );
-			$num = $num - ( $a * pow( $base, $t ) );
-		}
-		return $out;
+		return sprintf('%x',crc32($dir));
 	}
 
 	/**
-- 
cgit v1.2.3