Changes for page Recent Changes

Last modified by Administrator on 2009/09/08 18:00

From version Icon 2.1 Icon
edited by Administrator
on 2026/11/28 07:54
Change comment: Migrated property [contentType] from class [XWiki.StyleSheetExtension]
To version Icon 4.1 Icon
edited by superadmin
on 2026/12/02 00:12
Change comment: Migrated property [contentType] from class [XWiki.StyleSheetExtension]

Summary

Details

Icon Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -$msg.get("xe.recentchanges")
1 +Recent Changes
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Admin
1 +XWiki.superadmin
Content
... ... @@ -123,12 +123,26 @@
123 123   #set($discard = $values.addAll(0, $criteria.get($criterion)))
124 124   #end
125 125   #end
126 - #set($rcDocumentNames = $xwiki.searchDocuments($hqlQuery, $rcChangesNb, 0, $values))
126 +#set ($legacyRaw2c943fa57f_1 = $services.query.hql($hqlQuery).bindValues($values).setLimit($rcChangesNb).setOffset(0).execute())
127 +#set ($legacyVisible2c943fa57f_1 = [])
128 +#foreach ($legacyEntry2c943fa57f_1 in $legacyRaw2c943fa57f_1)
129 + #if ($xwiki.hasAccessLevel('view', $xcontext.user, $legacyEntry2c943fa57f_1))
130 + #set ($legacyVisibilityDiscard = $legacyVisible2c943fa57f_1.add($legacyEntry2c943fa57f_1))
131 + #end
132 +#end
133 + #set($rcDocumentNames = $legacyVisible2c943fa57f_1)
127 127   #else
128 128   ## No query criterion, perform the query as is.
129 - #set($rcDocumentNames = $xwiki.searchDocuments($hqlQuery, $rcChangesNb, 0))
136 +#set ($legacyRaw2c943fa57f_2 = $services.query.hql($hqlQuery).setLimit($rcChangesNb).setOffset(0).execute())
137 +#set ($legacyVisible2c943fa57f_2 = [])
138 +#foreach ($legacyEntry2c943fa57f_2 in $legacyRaw2c943fa57f_2)
139 + #if ($xwiki.hasAccessLevel('view', $xcontext.user, $legacyEntry2c943fa57f_2))
140 + #set ($legacyVisibilityDiscard = $legacyVisible2c943fa57f_2.add($legacyEntry2c943fa57f_2))
130 130   #end
131 131  #end
143 + #set($rcDocumentNames = $legacyVisible2c943fa57f_2)
144 + #end
145 +#end
132 132  ##
133 133  ## Prepare comments handling
134 134  #set($commentsOrder = false)