Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 345)
+++ trunk/CHANGELOG	(revision 346)
@@ -12,6 +12,7 @@
 
 ------------------------------------- 2.6.4 -------------------------------------
 03-May-2006 Stefan Braunewell
+#	Fixed problem with pre-2.6.0 modules not appearing in section list
 #	Fixed e-mail bug caused by From: headers in internal mail function calls
 	(#189)
 #	E-mail validation  in install script now accepts new top-level domains
Index: trunk/wb/admin/pages/sections.php
===================================================================
--- trunk/wb/admin/pages/sections.php	(revision 345)
+++ trunk/wb/admin/pages/sections.php	(revision 346)
@@ -163,11 +163,8 @@
 	$num_sections = $query_sections->numRows();
 	while($section = $query_sections->fetchRow()) {
 		// Get the modules real name
-		$module_path = WB_PATH.'/modules/'.$section['module'].'/info.php';
-		if(file_exists($module_path)) {
-			require($module_path);
-			if(!isset($module_function)) { $module_function = 'unknown'; }
-			if(!is_numeric(array_search($section['module'], $module_permissions)) AND $module_function == 'page') {
+		$module_name=$database->get_one("SELECT name FROM ".TABLE_PREFIX."addons WHERE directory='".$section['module']."'");
+		if(!is_numeric(array_search($section['module'], $module_permissions))) {
 			?>
 			<tr>
 				<td style="width: 250px;"><a href="<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page_id; ?>#<?php echo $section['section_id']; ?>"><?php echo $module_name; ?></a></td>
@@ -206,8 +203,6 @@
 			</tr>
 			<?php
 			}
-			if(isset($module_function)) { unset($module_function); } // Unset module type
-		}
 	}
 	?>
 	<tr>
@@ -265,4 +260,4 @@
 // Print admin footer
 $admin->print_footer();
 
-?>
\ No newline at end of file
+?>
