From d6ca7358f21449349179044692699581b7c9311d Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 1 Jan 2011 22:42:53 +0000 Subject: [PATCH] Per Nikerabbit on IRC, and Bryan on CR (r79451), change back for ===, and intval( $oldid ) --- includes/api/ApiParse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index d2e1920d2d..39da1036dc 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -94,7 +94,7 @@ class ApiParse extends ApiBase { $wgTitle = $titleObj; // If for some reason the "oldid" is actually the current revision, it may be cached - if ( $titleObj->getLatestRevID() == $oldid ) { + if ( $titleObj->getLatestRevID() === intval( $oldid ) ) { $p_result = false; $pcache = ParserCache::singleton(); -- 2.20.1