Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 1004)
+++ trunk/CHANGELOG	(revision 1005)
@@ -11,6 +11,11 @@
 ! = Update/Change
 
 ------------------------------------- 2.8.0 -------------------------------------
+22-June-2009 Dietrich Roland Pehlke
+#	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.
+!	Moving the html-template inside a "htt" folder and rename the suffix to ".htt" to
+	keep it consitant to other modules. Minor cosmetic changes inside the code.
 22-June-2009 Ruud Eisinga
 #	Fixed a bug in Menu_link module that made childpages of the menu_link page 
 	not selectable. (thnx to Luisehahne)
Index: trunk/wb/modules/code/info.php
===================================================================
--- trunk/wb/modules/code/info.php	(revision 1004)
+++ trunk/wb/modules/code/info.php	(revision 1005)
@@ -23,13 +23,13 @@
 
 */
 
-$module_directory = 'code';
-$module_name = 'Code';
-$module_function = 'page';
-$module_version = '2.7';
-$module_platform = '2.7.x';
-$module_author = 'Ryan Djurovich';
-$module_license = 'GNU General Public License';
-$module_description = 'This module allows you to execute PHP commands (limit access to users you trust!!)';
+$module_directory	= 'code';
+$module_name		= 'Code';
+$module_function	= 'page';
+$module_version		= '2.8';
+$module_platform	= '2.7.x';
+$module_author		= 'Ryan Djurovich';
+$module_license		= 'GNU General Public License';
+$module_description	= 'This module allows you to execute PHP commands (limit access to users you trust!!)';
 
 ?>
\ No newline at end of file
Index: trunk/wb/modules/code/modify.php
===================================================================
--- trunk/wb/modules/code/modify.php	(revision 1004)
+++ trunk/wb/modules/code/modify.php	(revision 1005)
@@ -25,7 +25,7 @@
 
 // Setup template object
 $template = new Template(WB_PATH.'/modules/code');
-$template->set_file('page', 'modify.html');
+$template->set_file('page', 'htt/modify.htt');
 $template->set_block('page', 'main_block', 'main');
 
 // Get page content
@@ -39,11 +39,12 @@
 	array(
 		'PAGE_ID'				=> $page_id,
 		'SECTION_ID'			=> $section_id,
-		'REGISTER_EDIT_AREA'	=> function_exists('registerEditArea') ? registerEditArea('content', 'php', false) : '',
+		'REGISTER_EDIT_AREA'	=> function_exists('registerEditArea') ? registerEditArea('content'.$section_id, 'php', false) : '',
 		'WB_URL'				=> WB_URL,
 		'CONTENT'				=> $content,
 		'TEXT_SAVE'				=> $TEXT['SAVE'],
-		'TEXT_CANCEL'			=> $TEXT['CANCEL']
+		'TEXT_CANCEL'			=> $TEXT['CANCEL'],
+		'SECTION'				=> $section_id
 	)
 );
 
