Index: inline_upload.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/inline/inline_upload.module,v retrieving revision 1.4 diff -u -p -r1.4 inline_upload.module --- inline_upload.module 15 May 2009 21:41:40 -0000 1.4 +++ inline_upload.module 11 Aug 2009 18:44:53 -0000 @@ -296,12 +296,24 @@ function _inline_upload_decide_img_tag($ /** * Return HTML for a link to a file. + * + * @param $file + * A file object. */ function theme_inline_upload_as_link($file) { // Prepare link text with title or filename. $linktext = (!empty($file->title) ? $file->title : $file->filename); - - return l($linktext, file_create_url($file->filepath), array('attributes' => array('title' => t('Download: @name (@size)', array('@name' => $file->filename, '@size' => format_size($file->filesize)))))); + $targs = array( + '@name' => $file->filename, + '@size' => format_size($file->filesize), + ); + + return l($linktext, file_create_url($file->filepath), array( + 'attributes' => array( + 'title' => t('Download: @name (@size)', $targs), + 'class' => 'inline-link inline-file-mime-' . strtr($file->filemime, '/.', '-'), + ), + )); } /**