Author: leo_wallentin
Description:
The gallery format of Semantic Result Formats (http://semantic-mediawiki.org/wiki/Help:Gallery_format) could be made to support foreign file repos, such as http://www.mediawiki.org/wiki/InstantCommons, where local file pages are probably missing most of the time.
This is currently prevented by line 257 in SRF_Gallery.php:
if ( $imgTitle->exists() ) {
We still need to check that the file exists, of course. Not sure what the best method is. Maybe something like this:
$imgFile = wfFindFile( $imgTitle ); if ( $imgFile && $imgFile->isVisible() ) {
Version: master
Severity: enhancement