Revision 543
Added by thorn almost 17 years ago
settings2.php | ||
---|---|---|
143 | 143 |
// Get page trail |
144 | 144 |
$page_trail = get_page_trail($page_id); |
145 | 145 |
|
146 |
// Make sure link is not overwritten if page uses the menu link module |
|
147 |
$query_sections = $database->query("SELECT section_id FROM ".TABLE_PREFIX."sections WHERE page_id = '$page_id' AND module = 'menu_link'"); |
|
148 |
if($query_sections->numRows() > 0) { |
|
149 |
$link = $old_link; |
|
150 |
} |
|
151 |
|
|
152 | 146 |
// Update page settings in the pages table |
153 | 147 |
$query = "UPDATE ".TABLE_PREFIX."pages SET parent = '$parent', page_title = '$page_title', menu_title = '$menu_title', menu = '$menu', level = '$level', page_trail = '$page_trail', root_parent = '$root_parent', link = '$link', template = '$template', target = '$target', description = '$description', keywords = '$keywords', position = '$position', visibility = '$visibility', searching = '$searching', language = '$language', admin_groups = '$admin_groups', viewing_groups = '$viewing_groups' WHERE page_id = '$page_id'"; |
154 | 148 |
$database->query($query); |
... | ... | |
237 | 231 |
// Print admin footer |
238 | 232 |
$admin->print_footer(); |
239 | 233 |
|
240 |
?> |
|
234 |
?> |
Also available in: Unified diff
module menu_link: fixed page-deleteing-bug and some odd behavior, added table mod_menu_link