NobuNobu
nobun****@users*****
2007年 4月 30日 (月) 16:34:31 JST
Index: xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php diff -u xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php:1.5 xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php:1.5.8.1 --- xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php:1.5 Mon May 1 11:37:30 2006 +++ xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php Mon Apr 30 16:34:31 2007 @@ -1,5 +1,5 @@ <?php -// $Id: modulesadmin.php,v 1.5 2006/05/01 02:37:30 onokazu Exp $ +// $Id: modulesadmin.php,v 1.5.8.1 2007/04/30 07:34:31 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -173,15 +173,15 @@ $error = true; } else { $msgs[] = "SQL file found at <b>$sql_file_path</b>.<br /> Creating tables..."; - include_once XOOPS_ROOT_PATH.'/class/database/sqlutility.php'; + include_once XOOPS_ROOT_PATH.'/class/database/oldsqlutility.php'; $sql_query = fread(fopen($sql_file_path, 'r'), filesize($sql_file_path)); $sql_query = trim($sql_query); - SqlUtility::splitMySqlFile($pieces, $sql_query); + OldSqlUtility::splitMySqlFile($pieces, $sql_query); $created_tables = array(); foreach ($pieces as $piece) { // [0] contains the prefixed query // [4] contains unprefixed table name - $prefixed_query = SqlUtility::prefixQuery($piece, $db->prefix()); + $prefixed_query = OldSqlUtility::prefixQuery($piece, $db->prefix()); if (!$prefixed_query) { $errs[] = "<b>$piece</b> is not a valid SQL!"; $error = true; @@ -427,7 +427,7 @@ } } - $groups = $xoopsUser->getGroups(); + $groups =& $xoopsUser->getGroups(); // retrieve all block ids for this module $blocks =& XoopsBlock::getByModule($newmid, false); $msgs[] = 'Setting group rights...';