Revision 500
Added by ryan over 17 years ago
branches/2.6.x/wb/admin/pages/settings2.php | ||
---|---|---|
193 | 193 |
// Update level and link |
194 | 194 |
$database->query("UPDATE ".TABLE_PREFIX."pages SET link = '$new_sub_link', level = '$new_sub_level' WHERE page_id = '".$sub['page_id']."' LIMIT 1"); |
195 | 195 |
// Re-write the access file for this page |
196 |
$old_subpage_file = WB_PATH.PAGES_DIRECTORY.$new_sub_link.PAGE_EXTENSION;
|
|
196 |
$old_subpage_file = WB_PATH.PAGES_DIRECTORY.$new_sub_link.'.php';
|
|
197 | 197 |
if(file_exists($old_subpage_file)) { |
198 | 198 |
unlink($old_subpage_file); |
199 | 199 |
} |
200 |
create_access_file(WB_PATH.PAGES_DIRECTORY.$new_sub_link.PAGE_EXTENSION, $sub['page_id'], $new_sub_level);
|
|
200 |
create_access_file(WB_PATH.PAGES_DIRECTORY.$new_sub_link.'.php', $sub['page_id'], $new_sub_level);
|
|
201 | 201 |
} |
202 | 202 |
} |
203 | 203 |
} |
Also available in: Unified diff
Added changeset [500] to 2.6.x branch