Revision 484
Added by Matthias over 17 years ago
trunk/wb/admin/pages/settings2.php | ||
---|---|---|
115 | 115 |
|
116 | 116 |
// Work-out what the link should be |
117 | 117 |
if($parent == '0') { |
118 |
$link = '/'.page_filename($menu_title);
|
|
119 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).PAGE_EXTENSION;
|
|
118 |
$link = '/'.page_filename($page_title);
|
|
119 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($page_title).PAGE_EXTENSION;
|
|
120 | 120 |
} else { |
121 | 121 |
$parent_section = ''; |
122 | 122 |
$parent_titles = array_reverse(get_parent_titles($parent)); |
... | ... | |
124 | 124 |
$parent_section .= page_filename($parent_title).'/'; |
125 | 125 |
} |
126 | 126 |
if($parent_section == '/') { $parent_section = ''; } |
127 |
$link = '/'.$parent_section.page_filename($menu_title);
|
|
128 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.$parent_section.page_filename($menu_title).PAGE_EXTENSION;
|
|
127 |
$link = '/'.$parent_section.page_filename($page_title);
|
|
128 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.$parent_section.page_filename($page_title).PAGE_EXTENSION;
|
|
129 | 129 |
} |
130 | 130 |
|
131 | 131 |
// Check if a page with same page filename exists |
Also available in: Unified diff
Fixes an issue with changing the menu_title also changes the page name in the /pages dir;
Now page name only changes if page_title is changed and menu_title is independent from page_title and page name.