Project

General

Profile

« Previous | Next » 

Revision 169

Added by ryan over 18 years ago

Fixed addon listing in numerous places so it now use's DB for info

View differences:

sections_save.php
78 78
		$module_path = WB_PATH.'/modules/'.$section['module'].'/info.php';
79 79
		if(file_exists($module_path)) {
80 80
			require($module_path);
81
			if(!isset($module_type)) { $module_type = 'unknown'; }
82
			if(!is_numeric(array_search($section['module'], $module_permissions)) AND $module_type == 'page') {
81
			if(!isset($module_function)) { $module_function = 'unknown'; }
82
			if(!is_numeric(array_search($section['module'], $module_permissions)) AND $module_function == 'page') {
83 83
				// Update the section record with properties
84 84
				$section_id = $section['section_id'];
85 85
				$sql = '';
......
91 91
					}
92 92
				}
93 93
			}
94
			if(isset($module_type)) { unset($module_type); } // Unset module type
94
			if(isset($module_function)) { unset($module_function); } // Unset module type
95 95
		}
96 96
	}
97 97
}

Also available in: Unified diff