-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
tstarling@svn.wikimedia.org wrote:
$file = new Image( $title );
if ( $file->exists() ) {
$file = function_exists( 'wfFindFile' ) ? wfFindFile( $title ) : new Image( $title );
if ( $file && $file->exists() ) {
Just a thought -- would it be cleaner to use the old Image::newFromTitle() factory method for this?
Changing it to call wfFindFile(), it would be backwards-compatible without making the explicit checks in the extension code.
- -- brion vibber (brion @ wikimedia.org)