Revision 1005
Added by aldus over 15 years ago
modify.php | ||
---|---|---|
25 | 25 |
|
26 | 26 |
// Setup template object |
27 | 27 |
$template = new Template(WB_PATH.'/modules/code'); |
28 |
$template->set_file('page', 'modify.html');
|
|
28 |
$template->set_file('page', 'htt/modify.htt');
|
|
29 | 29 |
$template->set_block('page', 'main_block', 'main'); |
30 | 30 |
|
31 | 31 |
// Get page content |
... | ... | |
39 | 39 |
array( |
40 | 40 |
'PAGE_ID' => $page_id, |
41 | 41 |
'SECTION_ID' => $section_id, |
42 |
'REGISTER_EDIT_AREA' => function_exists('registerEditArea') ? registerEditArea('content', 'php', false) : '', |
|
42 |
'REGISTER_EDIT_AREA' => function_exists('registerEditArea') ? registerEditArea('content'.$section_id, 'php', false) : '',
|
|
43 | 43 |
'WB_URL' => WB_URL, |
44 | 44 |
'CONTENT' => $content, |
45 | 45 |
'TEXT_SAVE' => $TEXT['SAVE'], |
46 |
'TEXT_CANCEL' => $TEXT['CANCEL'] |
|
46 |
'TEXT_CANCEL' => $TEXT['CANCEL'], |
|
47 |
'SECTION' => $section_id |
|
47 | 48 |
) |
48 | 49 |
); |
49 | 50 |
|
Also available in: Unified diff
Changes on module "code": add the section_id to the name of the textarea,
to keep the functionality if you are using more than one code-section on a page.