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.14.4]
Résumé
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -61,12 +61,7 @@ 61 61 #end 62 62 #set ($discard = $namespaces.add($wikiPrettyName)) 63 63 #end 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 64 + #set ($namespaces = $sorttool.sort($namespaces)) 70 70 ## 71 71 ## Other 72 72 ## ... ... @@ -108,18 +108,13 @@ 108 108 #foreach ($extension in $extensions) 109 109 #addPaidExtensionRow($extension $rows) 110 110 #end 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)) 106 +#set ($rows = $sorttool.sort($rows, 'name')) 107 +#set ($offset = $mathtool.sub($mathtool.toInteger($request.offset), 1)) 118 118 #if ("$!offset" == '') 119 119 #set ($offset = 0) 120 120 #end 121 121 #set ($offset = $mathtool.max($mathtool.min($offset, $mathtool.sub($rows.size(), 1)), 0)) 122 -#set ($limit = $ numbertool.toNumber($request.limit).intValue())112 +#set ($limit = $mathtool.toInteger($request.limit)) 123 123 #if ("$!limit" == '') 124 124 #set ($limit = 10) 125 125 #elseif ($limit <= 0)