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; }