글 수정시 원문의 글내용이 사라지는 오류 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5953 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-03-24 07:35:50 +00:00
parent c4014a88b9
commit a106001d53

View file

@ -330,11 +330,11 @@
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
// 글쓴이의 언어변수와 원문의 언어변수가 다르면 확장변수로 처리
if($source_obj->lang_code != Context::getLangType()) {
if($source_obj->get('lang_code') != Context::getLangType()) {
$extra_content->title = $obj->title;
$extra_content->content = $obj->content;
$obj->title = $source_obj->title;
$obj->content = $source_obj->content;
$obj->title = $source_obj->get('title');
$obj->content = $source_obj->get('content');
}
// 세션에서 최고 관리자가 아니면 iframe, script 제거