mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
rss 제목의 사용자언어 처리
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6048 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f7323481b8
commit
c0547b52fa
1 changed files with 6 additions and 0 deletions
|
|
@ -81,10 +81,13 @@
|
|||
$oDocumentModel = &getModel('document');
|
||||
$output = $oDocumentModel->getDocumentList($args);
|
||||
$document_list = $output->data;
|
||||
$oModuleController = &getController('module');
|
||||
|
||||
// 피드 제목 및 정보등을 추출 Context::getBrowserTitle
|
||||
if($mid) {
|
||||
$info->title = Context::getBrowserTitle();
|
||||
$oModuleController->replaceDefinedLangCode($info->title);
|
||||
|
||||
$info->title = str_replace('\'', ''',$info->title);
|
||||
if($config->feed_description) {
|
||||
$info->description = str_replace('\'', ''', htmlspecialchars($config->feed_description));
|
||||
|
|
@ -103,11 +106,14 @@
|
|||
$site_module_info = Context::get('site_module_info');
|
||||
$info->title = $site_module_info->browser_title;
|
||||
}
|
||||
|
||||
$oModuleController->replaceDefinedLangCode($info->title);
|
||||
$info->title = str_replace('\'', ''', htmlspecialchars($info->title));
|
||||
$info->description = str_replace('\'', ''', htmlspecialchars($total_config->feed_description));
|
||||
$info->link = Context::getRequestUri();
|
||||
$info->feed_copyright = str_replace('\'', ''', htmlspecialchars($total_config->feed_copyright));
|
||||
}
|
||||
|
||||
if($total_config->image) $info->image = Context::getRequestUri().str_replace('\'', ''', htmlspecialchars($total_config->image));
|
||||
$info->total_count = $output->total_count;
|
||||
$info->total_page = $output->total_page;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue