From 40ef91f3295214e71d7af7c48ba7cb1c2138728c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 20 May 2008 03:15:07 +0000 Subject: [PATCH] Tweak $time default --- includes/ImagePage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 7aaab02c1e..f226e1898b 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -20,11 +20,11 @@ class ImagePage extends Article { var $mExtraDescription = false; var $dupes; - function __construct( $title, $time = false ) { + function __construct( $title, $time = null ) { parent::__construct( $title ); global $wgRequest; - $time = $time ? $time : $wgRequest->getVal( 'filetimestamp' ); + $time = is_null($time) ? $time : $wgRequest->getVal( 'filetimestamp' ); $this->img = wfFindFile( $this->mTitle, $time ); if ( !$this->img ) { -- 2.20.1