From fd95a942aa41e6159cdf5aff450d654b2b02d394 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 29 Jul 2023 11:55:42 +0100 Subject: [PATCH] Refactor condition logic --- core/modules/widgets/transclude.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/transclude.js b/core/modules/widgets/transclude.js index 12d775de7..b3c599f45 100755 --- a/core/modules/widgets/transclude.js +++ b/core/modules/widgets/transclude.js @@ -237,7 +237,7 @@ TranscludeWidget.prototype.getTransclusionTarget = function(parseAsInline) { } $tw.utils.addAttributeToParseTreeNode(parser.tree[0],name,param["default"]) }); - } else if(srcVariable && (srcVariable.isMacroDefinition || !srcVariable.isFunctionDefinition)) { + } else if(srcVariable && !srcVariable.isFunctionDefinition) { // For macros and ordinary variables, wrap the parse tree in a vars widget assigning the parameters to variables named "__paramname__" parser = { tree: [