Several changes to filemanage.js and afs.php, that change the file links in the main file list. With these changes, files that cannot be displayed by the file viewer page now have the links on the file name and mini-icon go directly to the download script rather than first to the file viewer where they are told they have to download the file instead.
Patch file