Changeset 1585
- Timestamp:
- 04/28/08 10:00:04 (7 months ago)
- Files:
-
- 1 modified
-
trunk/htdocs/system/classes/utils.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/classes/utils.php
r1574 r1585 734 734 public static function glob( $pattern, $flags = 0 ) 735 735 { 736 if ( ! defined( 'GLOB_NOBRACE' ) || ! ( $flags & GLOB_BRACE== GLOB_BRACE ) ) {736 if ( ! defined( 'GLOB_NOBRACE' ) || ! ( ( $flags & GLOB_BRACE ) == GLOB_BRACE ) ) { 737 737 // this platform supports GLOB_BRACE out of the box 738 738 $results= glob( $pattern, $flags ); … … 774 774 'PiB' 775 775 ); 776 $tick = 0;777 $max_tick = count($sizes) - 1;778 while($bytesize > 1024 && $tick < $max_tick) {779 $tick++;780 $bytesize /= 1024;781 }782 783 return sprintf('%0.2f%s', $bytesize, $sizes[$tick]);776 $tick = 0; 777 $max_tick = count($sizes) - 1; 778 while($bytesize > 1024 && $tick < $max_tick) { 779 $tick++; 780 $bytesize /= 1024; 781 } 782 783 return sprintf('%0.2f%s', $bytesize, $sizes[$tick]); 784 784 } 785 785
