From 3b7f89554a6ced635053d38432ed6ee6db14ea90 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 22 Jul 2004 00:05:52 +0000 Subject: [PATCH] File cache fix (typo had reversed one of the checks, and another was no longer quite right --- includes/Article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 0fe1352c6d..bfe325a467 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -658,7 +658,7 @@ class Article { return; } - if ( !is_null( $oldid ) and $this->checkTouched() ) { + if ( empty( $oldid ) && $this->checkTouched() ) { if( $wgOut->checkLastModified( $this->mTouched ) ){ return; } else if ( $this->tryFileCache() ) { @@ -1738,7 +1738,7 @@ class Article { and ($wgUser->getId() == 0) and (!$wgUser->getNewtalk()) and ($this->mTitle->getNamespace() != Namespace::getSpecial()) - and ($action == 'view') + and ($action == 'view' || empty( $action )) and (!isset($oldid)) and (!isset($diff)) and (!isset($redirect)) -- 2.20.1