https://bugzilla.wikimedia.org/show_bug.cgi?id=23412

           Summary: {{#ifexist}} doesn't work correctly for File namespace
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: ParserFunctions
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: gsv...@gmail.com


The parser function {{#ifexist}} works as expected (i.e. checks for an
existence of a file, even if it's on commons) if used with Media: prefix, but
not with Image: or File:.

I think it is because of the following code in ParserFunctions_body.php:
if( $title->getNamespace() == NS_MEDIA ) {
/* If namespace is specified as NS_MEDIA, then we want to
* check the physical file, not the "description" page.
*/ 

It should test here also for the File: and Image: prefixes.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to