*Use null for time/rev ID for templates/images when they don't exist, rather than...
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 31 May 2007 17:15:44 +0000 (17:15 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 31 May 2007 17:15:44 +0000 (17:15 +0000)
includes/Parser.php
includes/ParserOutput.php

index 4ad8305..efade09 100644 (file)
@@ -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 );
index c13c325..0efb0a8 100644 (file)
@@ -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
        }