From 9f1eab175dd0345c12fecb2fd2e772cba486a185 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Tue, 9 May 2023 14:31:36 +0100 Subject: [PATCH] Fix transclusion refresh Fixes #7441 --- core/modules/widgets/transclude.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/widgets/transclude.js b/core/modules/widgets/transclude.js index b0a84a13a..dabd6d832 100755 --- a/core/modules/widgets/transclude.js +++ b/core/modules/widgets/transclude.js @@ -45,7 +45,7 @@ TranscludeWidget.prototype.execute = function() { var target = this.getTransclusionTarget(), parseTreeNodes = target.parseTreeNodes; this.sourceText = target.text; - this.sourceType = target.type; + this.parserType = target.type; this.parseAsInline = target.parseAsInline; // Process the transclusion according to the output type switch(this.transcludeOutput || "text/html") { @@ -58,7 +58,7 @@ TranscludeWidget.prototype.execute = function() { break; default: // text/plain - var plainText = this.wiki.renderText("text/plain",this.sourceType,this.sourceText,{parentWidget: this}); + var plainText = this.wiki.renderText("text/plain",this.parserType,this.sourceText,{parentWidget: this}); parseTreeNodes = [{type: "text", text: plainText}]; break; }