Bug 41122 - Catchable fatal error: Object of class ParserOptions could not be convert...
authorReedy <reedy@wikimedia.org>
Fri, 19 Oct 2012 20:12:55 +0000 (21:12 +0100)
committerReedy <reedy@wikimedia.org>
Fri, 19 Oct 2012 20:12:55 +0000 (21:12 +0100)
Fix ApiParse occurence

Change-Id: I82db8bb6dff178e11a1e6731fbf2cd977daa804a

includes/api/ApiParse.php

index a29a0bd..b8e0233 100644 (file)
@@ -114,7 +114,7 @@ class ApiParse extends ApiBase {
                                        }
 
                                        // Should we save old revision parses to the parser cache?
-                                       $p_result = $this->content->getParserOutput( $titleObj, $popts );
+                                       $p_result = $this->content->getParserOutput( $titleObj, $rev->getId(), $popts );
                                }
                        } else { // Not $oldid, but $pageid or $page
                                if ( $params['redirects'] ) {