Fix string concat error in r66150. Also was a bug/notice in TW
authorSam Reed <reedy@users.mediawiki.org>
Thu, 6 Jan 2011 22:06:47 +0000 (22:06 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 6 Jan 2011 22:06:47 +0000 (22:06 +0000)
includes/api/ApiParse.php

index a626c77..faeeb01 100644 (file)
@@ -105,7 +105,7 @@ class ApiParse extends ApiBase {
                                        $wgTitle = $titleObj;
 
                                        if ( $this->section !== false ) {
-                                               $text = $this->getSectionText( $text, 'r' . $rev );
+                                               $text = $this->getSectionText( $text, 'r' . $rev->getId() );
                                        }
 
                                        $p_result = $wgParser->parse( $text, $titleObj, $popts );