public function HashFile($path, $theme = true)
    {
        $path = $theme ? $this->getPath($path) : $path;

        if (file_exists($path)) {
            $hash = md5_file($path);
            return str_replace(array('/', '+', '='), '', base64_encode(pack('H*', $hash)));
        }

        return '';
    }
public function HashFile($path, $theme = true)
    {
        $path = $theme ? $this->getPath($path) : $path;

        if (file_exists($path)) {
            $hash = md5_file($path);
            return str_replace(array('/', '+', '='), '', base64_encode(pack('H*', $hash)));
        }

        return '';
    }
public function HashFile ( $ path , $ theme = true ) { $ path = $ theme ? $ this -> getPath ( $ path ) : $ path ; if ( file_exists ( $ path ) ) { $ hash = md5_file ( $ path ) ; return str_replace ( array ( '/' , '+' , '=' ) , '' , base64_encode ( pack ( 'H*' , $ hash ) ) ) ; } return '' ; }
Returns an md5 hash of a file
@param  string $path Relative or absolute path to file
@param  boolean $theme Whether or not to take current theme into account
@return string  The md5 of the file
Returns an md5 hash of a file