From: Sam Reed Date: Sat, 1 Jan 2011 22:42:53 +0000 (+0000) Subject: Per Nikerabbit on IRC, and Bryan on CR (r79451), change back for ===, and intval... X-Git-Tag: 1.31.0-rc.0~32908 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=d6ca7358f21449349179044692699581b7c9311d;p=lhc%2Fweb%2Fwiklou.git Per Nikerabbit on IRC, and Bryan on CR (r79451), change back for ===, and intval( $oldid ) --- 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();