mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +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
|
|
@ -25,7 +25,8 @@
|
|||
$obj->module_srl = $this->module_srl;
|
||||
if($obj->is_notice!='Y'||!$this->grant->manager) $obj->is_notice = 'N';
|
||||
|
||||
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,'...');
|
||||
|
||||
// 관리자가 아니라면 게시글 색상/굵기 제거
|
||||
if(!$this->grant->manager) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
else { $info->id = getUrl('','module','rss','act','rss','format','atom','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date')); }
|
||||
break;
|
||||
case 'rss1.0':
|
||||
$info->date = date('Y-m-d\TH:i:sO');
|
||||
$info->date = date('Y-m-d\TH:i:sP');
|
||||
break;
|
||||
default:
|
||||
$info->date = date("D, d M Y H:i:s").' '.$GLOBALS['_time_zone'];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<title>{str_replace('\'', ''',$oDocument->getTitle())}</title>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<description>{str_replace('\'', ''', htmlspecialchars($oDocument->getContentText(200)))}</description>
|
||||
<dc:date>{$oDocument->getRegdate('Y-m-d\TH:i:sO')}</dc:date>
|
||||
<dc:date>{$oDocument->getRegdate('Y-m-d\TH:i:sP')}</dc:date>
|
||||
</item>
|
||||
<!--@end-->
|
||||
</rdf:RDF>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue