Fix fatal error from undefined $wgParser.
authorBrian Wolff <bawolff@users.mediawiki.org>
Mon, 19 Jul 2010 05:57:23 +0000 (05:57 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Mon, 19 Jul 2010 05:57:23 +0000 (05:57 +0000)
includes/api/ApiQueryRevisions.php

index 8a389df..d4f89e2 100644 (file)
@@ -455,6 +455,7 @@ class ApiQueryRevisions extends ApiQueryBase {
 
                        }
                        if ( $this->expandTemplates ) {
+                               global $wgParser;
                                $text = $wgParser->preprocess( $text, $title, new ParserOptions() );
                        }
                        ApiResult::setContent( $vals, $text );