• Resolved pdecaux

    (@pdecaux)


    I noticed a small typo in the ‘nice size’ function:

    elseif uses $byes instead of $bytes

    function mtli_return_nice_size($bytes){
    	if($bytes<1024){
    		return $bytes.'b';
    	} elseif($byes<1048576){
    		return number_format(($bytes/1024),2).'Kb';
    	} elseif($bytes<1073741824){
    		return number_format(($bytes/1048576),2).'Mb';
    	} else {
    		return number_format(($bytes/1073741824),2).'Gb';
    	}
    }

    http://wordpress.org/extend/plugins/mimetypes-link-icons/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: MimeTypes Link Icons] Small error!’ is closed to new replies.