From 47f80339b2de7070cff1422a5a608bfc4310b826 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sat, 1 Oct 2022 10:15:14 +0100 Subject: [PATCH] Update transclude widget to use error widget Missed off #6970 --- core/modules/widgets/transclude.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/modules/widgets/transclude.js b/core/modules/widgets/transclude.js index 18645cd27..ff30c841d 100755 --- a/core/modules/widgets/transclude.js +++ b/core/modules/widgets/transclude.js @@ -70,11 +70,9 @@ TranscludeWidget.prototype.execute = function() { // Check for recursion if(parser) { if(this.parentWidget && this.parentWidget.hasVariable("transclusion",recursionMarker)) { - parseTreeNodes = [{type: "element", tag: "span", attributes: { - "class": {type: "string", value: "tc-error"} - }, children: [ - {type: "text", text: $tw.language.getString("Error/RecursiveTransclusion")} - ]}]; + parseTreeNodes = [{type: "error", attributes: { + "$message": {type: "string", value: $tw.language.getString("Error/RecursiveTransclusion")} + }]; } } // Construct the child widgets