WordPress.org

Ready to get started?Download WordPress

Forums

MimeTypes Link Icons
[resolved] Small error! (2 posts)

  1. pdecaux
    Member
    Posted 1 year ago #

    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/

  2. eagerterrier
    Member
    Plugin Author

    Posted 1 year ago #

    thanks @pdeceaux - fixed for v 2.1.8

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.