Unset $pinned unconditionally when displaying comments
commitc23914fc1df309a6b1d85ec5387cfbef2161e655
authorMark Weiman <mark.weiman@markzz.com>
Tue, 16 Feb 2016 13:21:55 +0000 (16 08:21 -0500)
committerLukas Fleischer <lfleischer@archlinux.org>
Fri, 19 Feb 2016 17:18:48 +0000 (19 18:18 +0100)
tree0976846874475c148d3ba178b6dcefd720e607c5
parentfb56ec9d1e4c814f76e6c84174151376092b96dc
Unset $pinned unconditionally when displaying comments

In pkg_comments.php, the $pinned variable is used to determine whether
the template is supposed to print all comments or pinned comments only.
If the $pinned variable is unset, the top 10 comments are printed,
followed by an "All comments" link. If the $pinned variable is set, the
pinned comments are printed and the "All comments" link below the
comment listing is skipped. Thus, we need to make sure that this
variable is always unset at the time we include the template to display
all comments, even if it was empty before.

Fixes FS#48194.

Signed-off-by: Mark Weiman <mark.weiman@markzz.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
web/lib/pkgbasefuncs.inc.php
web/lib/pkgfuncs.inc.php