X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=nucleus%2Fconvert%2Ffunctions.inc.php;h=be81999528afbd8b42a77038b897e00027549e88;hb=6575e866f3fd1938601432841d80f82e9d259265;hp=db3a01a90e30d21b16a6dd1364a8cede7a1324e2;hpb=0926bc19967e1b472c9aeb40eb47234a601a68f8;p=nucleus-jp%2Fnucleus-next.git
diff --git a/nucleus/convert/functions.inc.php b/nucleus/convert/functions.inc.php
index db3a01a..be81999 100644
--- a/nucleus/convert/functions.inc.php
+++ b/nucleus/convert/functions.inc.php
@@ -12,7 +12,7 @@
/**
* @license http://nucleuscms.org/license.txt GNU General Public License
* @copyright Copyright (C) 2002-2006 The Nucleus Group
- * @version $Id: functions.inc.php 1624 2012-01-09 11:36:20Z sakamocchi $
+ * @version $Id: functions.inc.php 1889 2012-06-17 08:46:45Z sakamocchi $
*/
// try to set a long timeout time
@@ -228,8 +228,10 @@ class BlogImport {
}
// - call callback
- if ($this->strCallback && function_exists($this->strCallback)) {
- call_user_func_array($this->strCallback, array(&$aData));
+ if ( $this->strCallback && function_exists($this->strCallback) )
+ {
+ $params = array(&$aData);
+ call_user_func_array($this->strCallback, $params);
}
if ($this->bDebug) {
@@ -283,9 +285,10 @@ class BlogImport {
switch($what) {
// ----------------------------------------------------------------------------------------
case 'NucleusMemberOptions':
- $res = sql_query('SELECT mname as text, mnumber as value FROM '.sql_table('member'));
- while ($o = mysql_fetch_object($res)) {
- echo '';
+ $res = DB::getResult('SELECT mname as text, mnumber as value FROM '.sql_table('member'));
+ foreach ( $res as $row )
+ {
+ echo '';
}
break;
// ----------------------------------------------------------------------------------------
@@ -293,7 +296,7 @@ class BlogImport {
$query = 'SELECT bname as text, bnumber as value FROM '.sql_table('blog');
$template['name'] = 'blogid';
$template['selected'] = $CONF['DefaultBlog'];
- showlist($query,'select',$template);
+ echo showlist($query,'select',$template);
break;
// ----------------------------------------------------------------------------------------
case 'ConvertSelectMembers':
@@ -324,7 +327,7 @@ class BlogImport {
-
|
|