Skip to content

Commit

Permalink
Fix page counts for index page
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaddr committed Jul 8, 2010
1 parent c66cdbb commit ece28c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blog/pages.clj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
:offset (config/page-offset page-number)
:admin? user
:post-type "blog")
c (oyako/fetch-one (db/count-rows :posts) :admin? user)]
c (oyako/fetch-one (db/count-rows :posts) :admin? user :post-type "blog")]
(if (seq posts)
{:body (html/render-index posts
:count (:count c)
Expand Down

0 comments on commit ece28c4

Please sign in to comment.