Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 1108)
+++ trunk/CHANGELOG	(revision 1109)
@@ -12,6 +12,8 @@
 
 ------------------------------------- 2.8.0 -------------------------------------
 6-Aug-2009 Matthias Gallas
++	Added to show_menu2 the aOption 'SM2_HIDEPAGES'. If set all hidden pages are
+	hidden again (Thanks to DarkViper)
 #	Fixed again some bugs in news modul (ticket #756) (Thanks to Aldus and Luisehahne)
 #	Fixed bug that frontend.js, frontend.css and frontend_body.js are not used
 	from snippets (ticket #764) (Thanks to Luisehahne)
Index: trunk/wb/modules/show_menu2/include.php
===================================================================
--- trunk/wb/modules/show_menu2/include.php	(revision 1108)
+++ trunk/wb/modules/show_menu2/include.php	(revision 1109)
@@ -43,6 +43,7 @@
 define('SM2_NOESCAPE',       0); // NOOP, unnecessary with WB 2.6.7+
 define('SM2_BUFFER',    0x0200); // bit 9
 define('SM2_CURRTREE',  0x0400); // bit 10
+define('SM2_HIDEPAGES', 0x0800); // bit 11 (reactivate old behavior and doesn't show hidden pages)
 
 define('_SM2_GROUP_1',  0x000F); // exactly one flag from group 1 is required
 
@@ -574,7 +575,9 @@
                 if ($page['page_id'] == $CURR_PAGE_ID) {
                     $page['sm2_is_curr'] = true;
                     $page['sm2_on_curr_path'] = true;
-                    unset($page['sm2_hide']); // don't hide the current page
+                    if (($flags & SM2_HIDEPAGES) == 0){
+                        unset($page['sm2_hide']); // don't hide the current page
+                    }
                 }
 
                 // mark parents of the current page as such
