Project

General

Profile

« Previous | Next » 

Revision 194

Added by ryan about 19 years ago

Added module_function-lowercasing

View differences:

functions.php
691 691
			if(!isset($module_license)) { $module_license = 'GNU General Public License'; }
692 692
			if(!isset($module_platform) AND isset($module_designed_for)) { $module_platform = $module_designed_for; }
693 693
			if(!isset($module_function) AND isset($module_type)) { $module_function = $module_type; }
694
			$module_function = strtolower($module_function);
694 695
			// Check that it doesn't already exist
695 696
			$result = $database->query("SELECT addon_id FROM ".TABLE_PREFIX."addons WHERE directory = '".$module_directory."' LIMIT 0,1");
696 697
			if($result->numRows() == 0) {

Also available in: Unified diff