Revision 831
Added by doc over 16 years ago
settings2.php | ||
---|---|---|
123 | 123 |
// Work-out what the link should be |
124 | 124 |
if($parent == '0') { |
125 | 125 |
$link = '/'.page_filename($menu_title); |
126 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).PAGE_EXTENSION; |
|
126 |
// rename menu titles: index && intro to prevent clashes with intro page feature and WB core file /pages/index.php |
|
127 |
if($link == '/index' || $link == '/intro') { |
|
128 |
$link .= '_' .$page_id; |
|
129 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).'_'.$page_id .PAGE_EXTENSION; |
|
130 |
} else { |
|
131 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).PAGE_EXTENSION; |
|
132 |
} |
|
127 | 133 |
} else { |
128 | 134 |
$parent_section = ''; |
129 | 135 |
$parent_titles = array_reverse(get_parent_titles($parent)); |
Also available in: Unified diff
Fixed possible clashes with intro page feature and WB core file /pages/index.php