1
0

Properly hide categories in sidebar plugin

This commit is contained in:
Garvin Hicking
2008-06-17 13:20:16 +00:00
parent 8ec332b3db
commit b661c528f4
2 changed files with 6 additions and 0 deletions

@ -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)

@ -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) {