Per Nikerabbit on IRC, and Bryan on CR (r79451), change back for ===, and intval...
authorSam Reed <reedy@users.mediawiki.org>
Sat, 1 Jan 2011 22:42:53 +0000 (22:42 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 1 Jan 2011 22:42:53 +0000 (22:42 +0000)
includes/api/ApiParse.php

index d2e1920..39da103 100644 (file)
@@ -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();