Revision 1238
Added by Dietmar almost 15 years ago
functions.php | ||
---|---|---|
851 | 851 |
if(!isset($module_function) AND isset($module_type)) { $module_function = $module_type; } |
852 | 852 |
$module_function = strtolower($module_function); |
853 | 853 |
// Check that it doesn't already exist |
854 |
$result = $database->query("SELECT addon_id FROM ".TABLE_PREFIX."addons WHERE directory = '".$module_directory."' LIMIT 0,1"); |
|
854 |
$result = $database->query("SELECT addon_id FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND directory = '".$module_directory."' LIMIT 0,1");
|
|
855 | 855 |
if($result->numRows() == 0) |
856 | 856 |
{ |
857 | 857 |
// Load into DB |
... | ... | |
904 | 904 |
if(!isset($language_license)) { $language_license = 'GNU General Public License'; } |
905 | 905 |
if(!isset($language_platform) AND isset($language_designed_for)) { $language_platform = $language_designed_for; } |
906 | 906 |
// Check that it doesn't already exist |
907 |
$result = $database->query("SELECT addon_id FROM ".TABLE_PREFIX."addons WHERE directory = '".$language_code."' LIMIT 0,1"); |
|
907 |
$result = $database->query("SELECT addon_id FROM ".TABLE_PREFIX."addons WHERE type = 'language' AND directory = '".$language_code."' LIMIT 0,1");
|
|
908 | 908 |
if($result->numRows() == 0) { |
909 | 909 |
// Load into DB |
910 | 910 |
$query = "INSERT INTO ".TABLE_PREFIX."addons ". |
Also available in: Unified diff
fix load_module, load_language (tks to Webbird)