Last modified by Frank Fock on 2025/01/26 23:11

From version 1.1
edited by Frank Fock
on 2024/02/07 18:16
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros/1.14.3]
To version 2.1
edited by Frank Fock
on 2024/05/23 17:17
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros/1.17.3]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,5 +3,3 @@
1 -{{include reference="Licenses.Code.VelocityMacros"/}}
2 -
3 3  {{velocity}}
4 4  ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right
5 5  ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that
... ... @@ -7,8 +7,6 @@
7 7  #if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))
8 8   {{id name="$services.rendering.escape($wikimacro.parameters.name, $xwiki.currentContentSyntaxId)" /}}
9 9  #else
10 - {{error}}
11 - #getMissingLicenseMessage('proMacros.extension.name')
12 - {{/error}}
8 + {{missingLicenseMessage extensionName="proMacros.extension.name"/}}
13 13  #end
14 14  {{/velocity}}