Modifications pour le document License JSON
Modifié par superadmin le 2022/01/01 16:06
Commentaire de modification :
Install extension [com.xwiki.licensing:application-licensing-licensor-ui/1.20]
Résumé
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -61,7 +61,12 @@ 61 61 #end 62 62 #set ($discard = $namespaces.add($wikiPrettyName)) 63 63 #end 64 - #set ($namespaces = $sorttool.sort($namespaces)) 64 + ## SortTool is deprecated since 12.0. 65 + #if ($collectiontool) 66 + #set ($namespaces = $collectiontool.sort($namespaces)) 67 + #else 68 + #set ($namespaces = $sorttool.sort($namespaces)) 69 + #end 65 65 ## 66 66 ## Other 67 67 ## ... ... @@ -103,13 +103,18 @@ 103 103 #foreach ($extension in $extensions) 104 104 #addPaidExtensionRow($extension $rows) 105 105 #end 106 -#set ($rows = $sorttool.sort($rows, 'name')) 107 -#set ($offset = $mathtool.sub($mathtool.toInteger($request.offset), 1)) 111 +## SortTool is deprecated since 12.0. 112 +#if ($collectiontool) 113 + #set ($rows = $collectiontool.sort($rows, 'name')) 114 +#else 115 + #set ($rows = $sorttool.sort($rows, 'name')) 116 +#end 117 +#set ($offset = $mathtool.sub($numbertool.toNumber($request.offset).intValue(), 1)) 108 108 #if ("$!offset" == '') 109 109 #set ($offset = 0) 110 110 #end 111 111 #set ($offset = $mathtool.max($mathtool.min($offset, $mathtool.sub($rows.size(), 1)), 0)) 112 -#set ($limit = $m athtool.toInteger($request.limit))122 +#set ($limit = $numbertool.toNumber($request.limit).intValue()) 113 113 #if ("$!limit" == '') 114 114 #set ($limit = 10) 115 115 #elseif ($limit <= 0)