mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#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:
parent
3db40bffed
commit
b2c965c27a
4 changed files with 8 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue