From: Aaron Schulz Date: Thu, 31 May 2007 17:15:44 +0000 (+0000) Subject: *Use null for time/rev ID for templates/images when they don't exist, rather than... X-Git-Tag: 1.31.0-rc.0~52746 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=481f419e0276fde5de26fb77bf7a5e24cbb9c1e1;p=lhc%2Fweb%2Fwiklou.git *Use null for time/rev ID for templates/images when they don't exist, rather than "get the one from jan 1, 1970" :) --- diff --git a/includes/Parser.php b/includes/Parser.php index 4ad83058f1..efade09c3c 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3277,7 +3277,7 @@ class Parser if( $skip ) { $text = false; - $this->mOutput->addTemplate( $title, $title->getArticleID(), 0 ); + $this->mOutput->addTemplate( $title, $title->getArticleID(), null ); break; } $rev = $id ? Revision::newFromId( $id ) : Revision::newFromTitle( $title ); diff --git a/includes/ParserOutput.php b/includes/ParserOutput.php index c13c325c30..0efb0a89eb 100644 --- a/includes/ParserOutput.php +++ b/includes/ParserOutput.php @@ -103,7 +103,7 @@ class ParserOutput array('img_name' => $name), __METHOD__ ); } - $timestamp = $timestamp ? $timestamp : 0; + $timestamp = $timestamp ? $timestamp : null; $this->mImageTimestamps[$name] = $timestamp; // For versioning }