Properly hide categories in sidebar plugin

This commit is contained in:
Garvin Hicking 2008-06-17 13:20:16 +00:00
parent 8594f1297f
commit 5bbd4151e6
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,11 @@
Version 1.4 ()
------------------------------------------------------------------------
* Fix bug in category sidebar plugin, which showed categories that
should have been hidden when the option "Hide parents of
selected sub-tree" was selected and Smarty templating was enabled.
(garvinhicking)
* Change option to allow subscriptions to comments so that
fulltext comments can be mailed to subscribers.
(garvinhicking)

View File

@ -1589,6 +1589,7 @@ class serendipity_categories_plugin extends serendipity_plugin {
// Hide parents outside of our tree
if ($hide_parallel && $serendipity['GET']['category']) {
if ($hidedepth == 0 && $cat['parentid'] != $serendipity['GET']['category'] && $cat['categoryid'] != $serendipity['GET']['category']) {
unset($categories[$cid]);
continue;
} else {
if ($cat['depth'] < $hidedepth) {