mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix escaping and userlang encoding of site keywords and description
This commit is contained in:
parent
faf4b1ea54
commit
f84715db5b
3 changed files with 7 additions and 6 deletions
|
|
@ -299,20 +299,20 @@ class ModuleHandler extends Handler
|
|||
$module_config = $oModuleModel->getModuleConfig('module');
|
||||
if ($module_info->meta_keywords)
|
||||
{
|
||||
Context::addMetaTag('keywords', escape($module_info->meta_keywords));
|
||||
Context::addMetaTag('keywords', $module_info->meta_keywords);
|
||||
}
|
||||
elseif($module_config->meta_keywords)
|
||||
{
|
||||
Context::addMetaTag('keywords', escape($module_config->meta_keywords));
|
||||
Context::addMetaTag('keywords', $module_config->meta_keywords);
|
||||
}
|
||||
|
||||
if ($module_info->meta_description)
|
||||
{
|
||||
Context::addMetaTag('description', escape($module_info->meta_description));
|
||||
Context::addMetaTag('description', $module_info->meta_description);
|
||||
}
|
||||
elseif($module_config->meta_description)
|
||||
{
|
||||
Context::addMetaTag('description', escape($module_config->meta_description));
|
||||
Context::addMetaTag('description', $module_config->meta_description);
|
||||
}
|
||||
|
||||
$viewType = (Mobile::isFromMobilePhone()) ? 'M' : 'P';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue