Changeset 146024
- Timestamp:
- 08/15/2009 04:28:19 AM (17 years ago)
- Location:
- wp-media-player/trunk
- Files:
-
- 2 edited
-
classes/utils.class.php (modified) (5 diffs)
-
wp-media-player.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-media-player/trunk/classes/utils.class.php
r116857 r146024 3 3 class wp_mp_utils 4 4 { 5 function byte_convert($bytes){ 5 function byte_convert($bytes) 6 { 6 7 $b = (int)$bytes; 7 8 $s = array(__('B'), __('kB'), __('MB'), __('GB'), __('TB')); 8 if( $b < 0){9 if( $b < 0 ){ 9 10 return "0 ".$s[0]; 10 11 } … … 14 15 } 15 16 16 function compare_filename($a, $b){ 17 function compare_filename($a, $b) 18 { 17 19 return strnatcmp($a['filename'], $b['filename']); 18 20 } 19 21 20 function compare_filesize($a, $b){ 21 if ($a['filezie'] == $b['filesize']) { 22 function compare_filesize($a, $b) 23 { 24 if ( $a['filezie'] == $b['filesize'] ) { 22 25 return 0; 23 26 } … … 25 28 } 26 29 27 function get_filename_without_ext($filename){ 30 function get_filename_without_ext($filename) 31 { 28 32 $pos = strripos($filename, '.'); 29 if( $pos === false){33 if( $pos === false ){ 30 34 return $filename; 31 35 }else{ … … 39 43 $arr = explode($search, $string); 40 44 /*** check the search is not out of bounds ***/ 41 switch( $offset ) 42 { 45 switch( $offset ){ 43 46 case $offset == 0: 44 47 return false; … … 54 57 } 55 58 56 function get_url_path($url){ 59 function get_url_path($url) 60 { 57 61 return substr($url, wp_mp_utils::strposOffset('/', $url, 3)); 58 62 } -
wp-media-player/trunk/wp-media-player.php
r145907 r146024 337 337 return false; 338 338 } 339 339 340 340 /** 341 341 * Updates player's dimensions to ensure aspect ratio is maintained
Note: See TracChangeset
for help on using the changeset viewer.