From b3955231978cce32ddce6a1744686d02fc111152 Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 19 Oct 2012 21:12:55 +0100 Subject: [PATCH] Bug 41122 - Catchable fatal error: Object of class ParserOptions could not be converted to string Fix ApiParse occurence Change-Id: I82db8bb6dff178e11a1e6731fbf2cd977daa804a --- 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 a29a0bd0b7..b8e0233af6 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -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'] ) { -- 2.20.1