Revision 819
Added by doc about 16 years ago
fck_wbmodules.php | ||
---|---|---|
40 | 40 |
global $template, $database, $admin; |
41 | 41 |
$get_pages = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '$parent'"); |
42 | 42 |
while($page = $get_pages->fetchRow()) { |
43 |
if(!$admin->page_is_visible($page)) |
|
43 |
// method page_is_visible was introduced with WB 2.7 |
|
44 |
if(method_exists($admin, 'page_is_visible') && !$admin->page_is_visible($page)) |
|
44 | 45 |
continue; |
45 | 46 |
$title = stripslashes($page['menu_title']); |
46 | 47 |
// Add leading -'s so we can tell what level a page is at |
Also available in: Unified diff
Fixed WB-Link Plugin to work with WB versions below 2.7 (so we can use the same module for WB 2.6.x and WB 2.7)