From: <ok...@us...> - 2003-01-07 21:33:10
|
Update of /cvsroot/xoops/xoops2/kernel/module/manager In directory sc8-pr-cvs1:/tmp/cvs-serv14503/kernel/module/manager Modified Files: module.php Log Message: added global comments feature Index: module.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/module/manager/module.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** module.php 5 Jan 2003 18:25:19 -0000 1.3 --- module.php 7 Jan 2003 21:32:03 -0000 1.4 *************** *** 118,124 **** if ($module->isNew()) { $mid = $this->db->genId('modules_mid_seq'); ! $sql = sprintf("INSERT INTO %s (mid, name, version, last_update, weight, isactive, dirname, hasmain, hasadmin, hassearch, hasconfig) VALUES (%u, '%s', %u, %u, %u, %u, '%s', %u, %u, %u, %u)", $this->db->prefix('modules'), $mid, $name, $version, time(), $weight, 1, $dirname, $hasmain, $hasadmin, $hassearch, $hasconfig); } else { ! $sql = sprintf("UPDATE %s SET name = '%s', dirname = '%s', version = %u, last_update = %u, weight = %u, isactive = %u, hasmain = %u, hasadmin = %u, hassearch = %u, hasconfig = %u WHERE mid = %u", $this->db->prefix('modules'), $name, $dirname, $version, time(), $weight, $isactive, $hasmain, $hasadmin, $hassearch, $hasconfig, $mid); } if (!$result = $this->db->query($sql)) { --- 118,124 ---- if ($module->isNew()) { $mid = $this->db->genId('modules_mid_seq'); ! $sql = sprintf("INSERT INTO %s (mid, name, version, last_update, weight, isactive, dirname, hasmain, hasadmin, hassearch, hasconfig, hascomments) VALUES (%u, '%s', %u, %u, %u, %u, '%s', %u, %u, %u, %u, %u)", $this->db->prefix('modules'), $mid, $name, $version, time(), $weight, 1, $dirname, $hasmain, $hasadmin, $hassearch, $hasconfig, $hascomments); } else { ! $sql = sprintf("UPDATE %s SET name = '%s', dirname = '%s', version = %u, last_update = %u, weight = %u, isactive = %u, hasmain = %u, hasadmin = %u, hassearch = %u, hasconfig = %u, hascomments = %u WHERE mid = %u", $this->db->prefix('modules'), $name, $dirname, $version, time(), $weight, $isactive, $hasmain, $hasadmin, $hassearch, $hasconfig, $hascomments, $mid); } if (!$result = $this->db->query($sql)) { |