mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 03:35:53 +00:00
Merge pull request #20 from paladox/patch-1
Fix addImage to use null instead of false for $file check
This commit is contained in:
commit
d26b1ef05b
|
@ -66,8 +66,8 @@ class MediaWikiParserService implements ExternalParser {
|
|||
*/
|
||||
public function addImage( $title ) {
|
||||
$file = wfFindFile( $title );
|
||||
$tmstmp = $file ? $file->getTimestamp() : false;
|
||||
$sha1 = $file ? $file->getSha1() : false;
|
||||
$tmstmp = $file ? $file->getTimestamp() : null;
|
||||
$sha1 = $file ? $file->getSha1() : null;
|
||||
$this->parser->getOutput()->addImage( $title, $tmstmp, $sha1 );
|
||||
|
||||
// Pass PI images to PageImages extension if available (Popups and og:image)
|
||||
|
|
Loading…
Reference in a new issue