summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TAssetManager.php
diff options
context:
space:
mode:
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));
}
/**