mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
TTXML 데이터 이전시에 TT전용 태그중 이미지 치환을 적용
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3449 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
98656df959
commit
55c86e84a7
1 changed files with 9 additions and 1 deletions
|
|
@ -968,7 +968,8 @@
|
|||
$obj->module_srl = $module_srl;
|
||||
$obj->document_srl = getNextSequence();
|
||||
$obj->title = $post->title->body;
|
||||
$obj->content = str_replace('[##_ATTACH_PATH_##]/','',$post->content->body);
|
||||
$obj->content = str_replace('[##_ATTACH_PATH_##]','',$post->content->body);
|
||||
$obj->content = preg_replace_callback('!\[##_1C\|([^\|]*)\|([^\|]*)\|(.*?)_##\]!is', array($this, '_replaceTTImgTag'), $obj->content);
|
||||
$obj->password = md5($post->password->body);
|
||||
$obj->allow_comment = $post->acceptcomment->body==1?'Y':'N';
|
||||
$obj->allow_trackback= $post->accepttrackback->body==1?'Y':'N';
|
||||
|
|
@ -1074,6 +1075,13 @@
|
|||
$this->setMessage(sprintf(Context::getLang('msg_import_finished'), $success_count, $total_count));
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ttxml의 자체 img 태그를 치환
|
||||
**/
|
||||
function _replaceTTImgTag($matches) {
|
||||
return sprintf("<img src=\"%s\" alt=\"%s\" />", $matches[1], str_replace("\"","\\\"",$matches[3]));
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief TTXML에 맞게 category정보 입력
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue