Properly hide categories in sidebar plugin
This commit is contained in:
parent
8594f1297f
commit
5bbd4151e6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user