Skip to content
  • Mark Weiman's avatar
    Unset $pinned unconditionally when displaying comments · c23914fc
    Mark Weiman authored and Lukas Fleischer's avatar Lukas Fleischer committed
    
    
    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: default avatarMark Weiman <mark.weiman@markzz.com>
    Signed-off-by: default avatarLukas Fleischer <lfleischer@archlinux.org>
    c23914fc