mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
fixed ttxml import
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6986 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c6ce5c9259
commit
0b2b8c42d6
3 changed files with 146 additions and 80 deletions
|
|
@ -100,7 +100,6 @@
|
|||
$guestbook_filename = sprintf('%s/%s', $oExtract->cache_path, 'guestbook.xml');
|
||||
FileHandler::writeFile($guestbook_filename, $buff);
|
||||
|
||||
|
||||
// 개별 아이템 구함
|
||||
$output = $oExtract->set($xml_file,'<blog', '</blog>', '<post ', '</post>');
|
||||
if($output->toBool()) $oExtract->saveItems();
|
||||
|
|
@ -151,7 +150,8 @@
|
|||
$target_module = Context::get('target_module');
|
||||
$guestbook_target_module = Context::get('guestbook_target_module');
|
||||
$this->unit_count = Context::get('unit_count');
|
||||
|
||||
|
||||
|
||||
// index파일이 있는지 확인
|
||||
$index_file = './files/cache/importer/'.$key.'/index';
|
||||
if(!file_exists($index_file)) return new Object(-1, 'msg_invalid_xml_file');
|
||||
|
|
@ -160,9 +160,12 @@
|
|||
case 'ttxml' :
|
||||
if(!$target_module) return new Object(-1,'msg_invalid_request');
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$target_module_info = $oModuleModel->getModuleInfoByModuleSrl($target_module);
|
||||
|
||||
require_once('./modules/importer/ttimport.class.php');
|
||||
$oTT = new ttimport();
|
||||
$cur = $oTT->importModule($key, $cur, $index_file, $this->unit_count, $target_module, $guestbook_target_module, $user_id);
|
||||
$cur = $oTT->importModule($key, $cur, $index_file, $this->unit_count, $target_module, $guestbook_target_module, $user_id, $target_module_info->module);
|
||||
break;
|
||||
case 'message' :
|
||||
$cur = $this->importMessage($key, $cur, $index_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue