$result=db_query("SELECT name, filename, throttle, bootstrap FROM {system} WHERE type = 'module' AND status = 1 AND bootstrap = 1 ORDER BY weight ASC, filename ASC");
$result=db_query("SELECT name, filename, throttle FROM {system} WHERE type = 'module' AND status = 1 AND bootstrap = 1 ORDER BY weight ASC, filename ASC");
}
else{
$result=db_query("SELECT name, filename, throttle, bootstrap FROM {system} WHERE type = 'module' AND status = 1 ORDER BY weight ASC, filename ASC");
$result=db_query("SELECT name, filename, throttle FROM {system} WHERE type = 'module' AND status = 1 ORDER BY weight ASC, filename ASC");
}
while($module=db_fetch_object($result)){
if(file_exists($module->filename)){
...
...
@@ -204,7 +204,7 @@ function module_load_install($module) {
functionmodule_enable($module_list){
$invoke_modules=array();
foreach($module_listas$module){
$existing=db_fetch_object(db_query("SELECT name, status FROM {system} WHERE type = 'module' AND name = '%s'",$module));
$existing=db_fetch_object(db_query("SELECT status FROM {system} WHERE type = 'module' AND name = '%s'",$module));
if($existing->status==='0'){
module_load_install($module);
db_query("UPDATE {system} SET status = 1, throttle = 0 WHERE type = 'module' AND name = '%s'",$module);