Hi.
I noticed that the post gallery always links to the attachment page even if the link="file" attribute is there. Tried to add an if statement for the $img_lnk variable to use the wp_get_attachment_url function when the link attribute is set with file as the value but it didnt change anything. wp_get_attachment_url will only return the attachment link if get_attachment_link isn't there (no if statement).
The things is, after activating Justin Tadlock's cleaner gallery plugin, the if statement works as it should, so I must've missed something.
I hope my explanation didnt confuse you, thanks in advance.
resolved