aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api
diff options
context:
space:
mode:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>2012-01-21 07:59:25 +0000
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>2012-01-21 07:59:25 +0000
commitb1d0376c1e21c25ddf19b6ac8f9eba879362a146 (patch)
tree0ca989e00756a9955e4e2d2df244322eb4beaabe /includes/api
parent5f6fa16138339b3e4f0f41f7d070fd2cd1421d04 (diff)
downloadmediawikicore-b1d0376c1e21c25ddf19b6ac8f9eba879362a146.tar.gz
mediawikicore-b1d0376c1e21c25ddf19b6ac8f9eba879362a146.zip
Fix bug 32948:
* {{REVISIONID}} and related variables are no longer blank after doing a null edit * {{REVISIONID}} and related variables are no longer blank after calling action=purge&forcelinkupdate
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/109679
Diffstat (limited to 'includes/api')
-rw-r--r--includes/api/ApiPurge.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php
index dfa7229e960b..9e9320fb6c22 100644
--- a/includes/api/ApiPurge.php
+++ b/includes/api/ApiPurge.php
@@ -89,7 +89,8 @@ class ApiPurge extends ApiBase {
global $wgParser, $wgEnableParserCache;
$popts = ParserOptions::newFromContext( $this->getContext() );
- $p_result = $wgParser->parse( $page->getRawText(), $title, $popts );
+ $p_result = $wgParser->parse( $page->getRawText(), $title, $popts,
+ true, true, $page->getLatest() );
# Update the links tables
$u = new LinksUpdate( $title, $p_result );