summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TAssetManager.php
diff options
context:
space:
mode:
authorxue <>2005-12-13 13:47:45 +0000
committerxue <>2005-12-13 13:47:45 +0000
commit14c2872a9ce91a7189b3f36a1470e5eadb09de7a (patch)
tree38b76d4def0a531b44631a5039560c3101359022 /framework/Web/UI/TAssetManager.php
parent35c7ff28cbc311fba5e394b11fb756a4dc1edcb9 (diff)
Diffstat (limited to 'framework/Web/UI/TAssetManager.php')
-rw-r--r--framework/Web/UI/TAssetManager.php12
1 files changed, 1 insertions, 11 deletions
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));
}
/**