This needs to be rolled into the approrpriate inc file
/**
* Tanlinell: Force Gallery to link to media file
*/
function tanlinell_force_gallery_file_link( $atts )
{
$atts['link'] = 'file';
return gallery_shortcode( $atts );
}
add_shortcode( 'gallery', 'tanlinell_force_gallery_file_link' );
This needs to be rolled into the approrpriate inc file