mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +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');
|
$oDocumentModel = &getModel('document');
|
||||||
$output = $oDocumentModel->getDocumentList($args);
|
$output = $oDocumentModel->getDocumentList($args);
|
||||||
$document_list = $output->data;
|
$document_list = $output->data;
|
||||||
|
$oModuleController = &getController('module');
|
||||||
|
|
||||||
// 피드 제목 및 정보등을 추출 Context::getBrowserTitle
|
// 피드 제목 및 정보등을 추출 Context::getBrowserTitle
|
||||||
if($mid) {
|
if($mid) {
|
||||||
$info->title = Context::getBrowserTitle();
|
$info->title = Context::getBrowserTitle();
|
||||||
|
$oModuleController->replaceDefinedLangCode($info->title);
|
||||||
|
|
||||||
$info->title = str_replace('\'', ''',$info->title);
|
$info->title = str_replace('\'', ''',$info->title);
|
||||||
if($config->feed_description) {
|
if($config->feed_description) {
|
||||||
$info->description = str_replace('\'', ''', htmlspecialchars($config->feed_description));
|
$info->description = str_replace('\'', ''', htmlspecialchars($config->feed_description));
|
||||||
|
|
@ -103,11 +106,14 @@
|
||||||
$site_module_info = Context::get('site_module_info');
|
$site_module_info = Context::get('site_module_info');
|
||||||
$info->title = $site_module_info->browser_title;
|
$info->title = $site_module_info->browser_title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$oModuleController->replaceDefinedLangCode($info->title);
|
||||||
$info->title = str_replace('\'', ''', htmlspecialchars($info->title));
|
$info->title = str_replace('\'', ''', htmlspecialchars($info->title));
|
||||||
$info->description = str_replace('\'', ''', htmlspecialchars($total_config->feed_description));
|
$info->description = str_replace('\'', ''', htmlspecialchars($total_config->feed_description));
|
||||||
$info->link = Context::getRequestUri();
|
$info->link = Context::getRequestUri();
|
||||||
$info->feed_copyright = str_replace('\'', ''', htmlspecialchars($total_config->feed_copyright));
|
$info->feed_copyright = str_replace('\'', ''', htmlspecialchars($total_config->feed_copyright));
|
||||||
}
|
}
|
||||||
|
|
||||||
if($total_config->image) $info->image = Context::getRequestUri().str_replace('\'', ''', htmlspecialchars($total_config->image));
|
if($total_config->image) $info->image = Context::getRequestUri().str_replace('\'', ''', htmlspecialchars($total_config->image));
|
||||||
$info->total_count = $output->total_count;
|
$info->total_count = $output->total_count;
|
||||||
$info->total_page = $output->total_page;
|
$info->total_page = $output->total_page;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue