From: Reedy Date: Fri, 19 Oct 2012 20:12:55 +0000 (+0100) Subject: Bug 41122 - Catchable fatal error: Object of class ParserOptions could not be convert... X-Git-Tag: 1.31.0-rc.0~21941 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=b3955231978cce32ddce6a1744686d02fc111152;p=lhc%2Fweb%2Fwiklou.git Bug 41122 - Catchable fatal error: Object of class ParserOptions could not be converted to string Fix ApiParse occurence Change-Id: I82db8bb6dff178e11a1e6731fbf2cd977daa804a --- 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'] ) {