Merge pull request #483 from hyeon0135/issue-migration

Importer 모듈 버그 수정
This commit is contained in:
akasima 2014-02-21 15:07:51 +09:00
commit 875c8dc964

View file

@ -937,6 +937,7 @@ class importerAdminController extends importer
$obj->last_update = base64_decode($xmlDoc->comment->update->body);
if(!$obj->last_update) $obj->last_update = $obj->regdate;
$obj->ipaddress = base64_decode($xmlDoc->comment->ipaddress->body);
$obj->status = base64_decode($xmlDoc->comment->status->body);
$obj->list_order = $obj->comment_srl*-1;
// Change content information (attachment)
if(count($files))
@ -1010,13 +1011,13 @@ class importerAdminController extends importer
while(!feof($fp))
{
$file_obj = new stdClass;
$str = trim(fgets($fp, 1024));
// If it ends with </attaches>, break
if(trim($str) == '</attaches>') break;
// If it starts with <attach>, collect attachments
if(trim($str) == '<attach>')
{
$file_obj = new stdClass;
$file_obj->file_srl = getNextSequence();
$file_obj->upload_target_srl = $upload_target_srl;
$file_obj->module_srl = $module_srl;