I think you have a double 'File:' prefix in there which may be confusing
things. Try Title::newFromText($fileName) if $fileName already includes
'File:' prefix.

-- brion

On Tue, Jan 20, 2015 at 11:42 AM, Jeroen De Dauw <[email protected]>
wrote:

> Hey,
>
> Now trying this code: wfFindFile( $title );
>
> With this title object as input: http://pastebin.com/7B9n1NyN (constructed
> with Title::makeTitle( NS_FILE, $fileName ))
>
> The output is still false. At the same time, the page definitely exists,
> and if I put "[[File:Blue marker.png]]" in a wiki page, it shows up just
> fine. I double checked my file permissions, and they seem fine. What am I
> missing?
>
> Cheers
>
> --
> Jeroen De Dauw - http://www.bn2vs.com
> Software craftsmanship advocate
> Evil software architect at Wikimedia Germany
> ~=[,,_,,]:3
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to