rss 제목의 사용자언어 처리

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6048 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2009-04-08 06:29:17 +00:00
parent f7323481b8
commit c0547b52fa

View file

@ -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;