Last modified: 2011-07-14 15:29:10 UTC
On line 66 of SRF_Gallery.php the filename extensions are removed for no good reason. I assume this was done with the thinking that a properly named file would eliminate the need for a caption, so when the filename is used as the default caption, the file extension would seem out of place. But... Most of the time filenames are nonsensical AND they can't be renamed. So, without the file extension, it is confusing. There is no reason to do this work by default, and so this feature should be removed unless there's some good reason for the bug-fixer to choose to make it an OPTION (not the default). I suspect that it may also be related to the cause of this bug, where turning off autocaptions does not work: https://bugzilla.wikimedia.org/show_bug.cgi?id=29875 By the way, not having a complete file name could complicate other tasks that might try to use data from Semantic Results Format.
I will have a look at this as soon as I have some time :) > By the way, not having a complete file name could complicate other tasks that might try to use data from Semantic Results Format. If you want to get data for usage in some other app, then you should not use the gallery format, but rather XML, JSON or similar.
I added a parameter to allow for the behavior you want in r92161.