#17638410 외 수정 - 제목에 숫자 0 입력 가능하게 수정, RSS 1.0 Spec

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5362 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-01-15 08:28:22 +00:00
parent 3db40bffed
commit b2c965c27a
4 changed files with 8 additions and 5 deletions

View file

@ -137,7 +137,8 @@
}
// 제목이 없으면 내용에서 추출
if(!$obj->title) $obj->title = cut_str(strip_tags($obj->content),20,'...');
settype($obj->title, "string");
if($obj->title == '') $obj->title = cut_str(strip_tags($obj->content),20,'...');
// 내용에서 XE만의 태그를 삭제
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
@ -238,7 +239,8 @@
}
// 제목이 없으면 내용에서 추출
if(!$obj->title) $obj->title = cut_str(strip_tags($obj->content),20,'...');
settype($obj->title, "string");
if($obj->title == '') $obj->title = cut_str(strip_tags($obj->content),20,'...');
// 내용에서 XE만의 태그를 삭제
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);