Skip to content
Snippets Groups Projects
Commit 3e16f35a authored by Marius Dumitru Florea's avatar Marius Dumitru Florea
Browse files

Fix deprecated calls.

parent db558e9a
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,8 @@ ...@@ -143,7 +143,8 @@
* [[$year (% class="itemCount" %)(${yearArticleCount})(%%)>>Blog.Archive?space=${blogDoc.space}&year=${year}]] * [[$year (% class="itemCount" %)(${yearArticleCount})(%%)>>Blog.Archive?space=${blogDoc.space}&year=${year}]]
#if ($year == $currentYear) #if ($year == $currentYear)
#foreach ($month in [1..12]) #foreach ($month in [1..12])
#set ($monthArticleCount = $xwiki.countDocuments("${query} and year(publishDate.value) = $year and month(publishDate.value) = $month", $queryParams)) #set ($statement = "${query} and year(publishDate.value) = $year and month(publishDate.value) = $month")
#set ($monthArticleCount = $services.query.hql($statement).bindValues($queryParams).count())
#if ($monthArticleCount > 0) #if ($monthArticleCount > 0)
$tempDate.setMonthOfYear($month)## $tempDate.setMonthOfYear($month)##
** [[$monthFormatter.print($tempDate) (% class="itemCount" %)(${monthArticleCount})(%%)>>Blog.Archive?space=${blogDoc.space}&year=${year}&month=${month}]] ** [[$monthFormatter.print($tempDate) (% class="itemCount" %)(${monthArticleCount})(%%)>>Blog.Archive?space=${blogDoc.space}&year=${year}&month=${month}]]
......
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
* [[$!{entryDoc.display('title', 'view', $entryObj).replaceAll('(\[|\]|\||>)', '~~$1')}>>$!{services.model.serialize($entryDoc.documentReference).replaceAll('(\[|\]|\||>)', '~$1')}]] * [[$!{entryDoc.display('title', 'view', $entryObj).replaceAll('(\[|\]|\||>)', '~~$1')}>>$!{services.model.serialize($entryDoc.documentReference).replaceAll('(\[|\]|\||>)', '~$1')}]]
#end #end
[[$services.localization.render('xe.blog.unpublished.viewall') (% class="itemCount" %)($xwiki.countDocuments($query))(%%)>>Blog.Unpublished]] [[$services.localization.render('xe.blog.unpublished.viewall') (% class="itemCount" %)($services.query.hql($query).count())(%%)>>Blog.Unpublished]]
#panelfooter() #panelfooter()
#end #end
{{/velocity}}</content> {{/velocity}}</content>
......
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
{{/html}} {{/html}}
#if ($docNames.size() == $limit) #if ($docNames.size() == $limit)
#set ($docCount = $xwiki.countDocuments('where doc.space=?', [${spaceParam}])) #set ($docCount = $services.query.xwql('where doc.space = :space').bindValue('space', $spaceParam).count())
#set ($remaining = $mathtool.sub($docCount, $limit)) #set ($remaining = $mathtool.sub($docCount, $limit))
#if ($remaining &gt; 0) #if ($remaining &gt; 0)
(% class="documentListMore" %) ((( (% class="documentListMore" %) (((
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment