Merge "Use preview content when it transcludes itself"
[lhc/web/wiklou.git] / includes / EditPage.php
index 7f5a9c0..4370295 100644 (file)
@@ -3573,6 +3573,8 @@ HTML
                        # But it's now deprecated, so never mind
 
                        $pstContent = $content->preSaveTransform( $this->mTitle, $wgUser, $parserOptions );
+                       $scopedCallback = $parserOptions->setupFakeRevision(
+                               $this->mTitle, $pstContent, $wgUser );
                        $parserOutput = $pstContent->getParserOutput( $this->mTitle, null, $parserOptions );
 
                        # Try to stash the edit for the final submission step