mirror of https://github.com/halo-dev/halo
Fixed commentTag variable.
parent
109c2e099d
commit
bb17d15b25
|
@ -34,7 +34,7 @@ public class CommentTagDirective implements TemplateDirectiveModel {
|
||||||
switch (method) {
|
switch (method) {
|
||||||
case "latest":
|
case "latest":
|
||||||
int top = Integer.parseInt(params.get("top").toString());
|
int top = Integer.parseInt(params.get("top").toString());
|
||||||
env.setVariable("categories", builder.build().wrap(postCommentService.pageLatest(top)));
|
env.setVariable("comments", builder.build().wrap(postCommentService.pageLatest(top)));
|
||||||
break;
|
break;
|
||||||
case "count":
|
case "count":
|
||||||
env.setVariable("count", builder.build().wrap(postCommentService.count()));
|
env.setVariable("count", builder.build().wrap(postCommentService.count()));
|
||||||
|
|
Loading…
Reference in New Issue