Revision 545
Added by thorn almost 17 years ago
modify.php | ||
---|---|---|
23 | 23 |
|
24 | 24 |
*/ |
25 | 25 |
|
26 |
// Must include code to stop this file being access directly |
|
26 |
// Must include code to stop this file being accessed directly
|
|
27 | 27 |
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } |
28 | 28 |
|
29 | 29 |
// get target page_id |
... | ... | |
44 | 44 |
if($query_subpage->numRows() > 0) { |
45 | 45 |
while($sub = $query_subpage->fetchRow()) { |
46 | 46 |
if($admin->page_is_visible($sub)) { |
47 |
$links[$sub['page_id']]=$links[$sub['parent']].'/'.$sub['menu_title']; |
|
47 |
$parent_link = (array_key_exists($sub['parent'],$links))?$links[$sub['parent']]:""; |
|
48 |
$links[$sub['page_id']]=$parent_link.'/'.$sub['menu_title']; |
|
48 | 49 |
} |
49 | 50 |
} |
50 | 51 |
} |
Also available in: Unified diff
fixed two issues with menu_link: adding a menu_link as first page did not worked; and an E_NOTICE-warning