... |
... |
@@ -16,10 +16,11 @@ |
16 |
16 |
} |
17 |
17 |
html << "</div>" |
18 |
18 |
|
19 |
|
- def rendered = services.rendering.parse(html.toString(), xcontext.syntax) |
20 |
|
- wikimacro.result = rendered.children |
|
19 |
+ def rendered = services.rendering.parse(html.toString(), "xwiki/2.1") |
|
20 |
+ wikimacro.result = rendered?.children ?: [] |
21 |
21 |
} else { |
22 |
|
- wikimacro.result = services.rendering.parse("<em>No images found.</em>", xcontext.syntax).children |
|
22 |
+ def fallback = services.rendering.parse("<em>No images found.</em>", "xwiki/2.1") |
|
23 |
+ wikimacro.result = fallback?.children ?: [] |
23 |
23 |
} |
24 |
24 |
{{/groovy}} |
25 |
25 |
|