From 481f419e0276fde5de26fb77bf7a5e24cbb9c1e1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 31 May 2007 17:15:44 +0000 Subject: [PATCH] *Use null for time/rev ID for templates/images when they don't exist, rather than "get the one from jan 1, 1970" :) --- includes/Parser.php | 2 +- includes/ParserOutput.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.20.1