Project

General

Profile

« Previous | Next » 

Revision 551

Added by thorn almost 17 years ago

Reintroduced some more changes from changeset [520] and [540] which where overwritten by changeset [546]

View differences:

settings2.php
150 150
// Get page trail
151 151
$page_trail = get_page_trail($page_id);
152 152

  
153
// Make sure link is not overwritten if page uses the menu link module
154
$query_sections = $database->query("SELECT section_id FROM ".TABLE_PREFIX."sections WHERE page_id = '$page_id' AND module = 'menu_link'");
155
if($query_sections->numRows() > 0) {
156
	$link = $old_link;
157
} 
158

  
159 153
// Update page settings in the pages table
160 154
$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'";
161 155
$database->query($query);

Also available in: Unified diff