Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -432,8 +432,8 @@ |
433 | 433 | $parser->mOutput->fr_ImageSHA1Keys[$title->getDBkey()] = array(); |
434 | 434 | $parser->mOutput->fr_ImageSHA1Keys[$title->getDBkey()][$time] = $sha1; |
435 | 435 | # Bug 15748, be lax about commons image sync status |
436 | | - $file = $file ? $file : wfFindFile( $title, $time ); # FIXME: would be nice not to double fetch! |
437 | | - if( $file && $file->isLocal() && $time > $parser->mOutput->fr_newestImageTime ) { |
| 436 | + $file = $file ? $file : wfLocalFile( $title, $time ); # FIXME: would be nice not to double fetch! |
| 437 | + if( $file->exists() && $file->isLocal() && $time > $parser->mOutput->fr_newestImageTime ) { |
438 | 438 | $parser->mOutput->fr_newestImageTime = $time; |
439 | 439 | } |
440 | 440 | return true; |
— | — | @@ -503,8 +503,8 @@ |
504 | 504 | $ig->mParser->mOutput->fr_ImageSHA1Keys[$nt->getDBkey()] = array(); |
505 | 505 | $ig->mParser->mOutput->fr_ImageSHA1Keys[$nt->getDBkey()][$time] = $sha1; |
506 | 506 | # Bug 15748, be lax about commons image sync status |
507 | | - $file = $file ? $file : wfFindFile( $nt, $time ); # FIXME: would be nice not to double fetch! |
508 | | - if( $file && $file->isLocal() && $time > $ig->mParser->mOutput->fr_newestImageTime ) { |
| 507 | + $file = $file ? $file : wfLocalFile( $nt, $time ); # FIXME: would be nice not to double fetch! |
| 508 | + if( $file->exists() && $file->isLocal() && $time > $ig->mParser->mOutput->fr_newestImageTime ) { |
509 | 509 | $ig->mParser->mOutput->fr_newestImageTime = $time; |
510 | 510 | } |
511 | 511 | return true; |