修复 rss 标签中 title 属性中板块名为空的 BUG

This commit is contained in:
Hex 2017-02-16 23:46:54 +08:00
parent f3384c5b95
commit c4699011c3
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,6 @@ if($_G['forum']['type'] == 'forum') {
}
$rssauth = $_G['rssauth'];
$rsshead = $_G['setting']['rssstatus'] ? ('<link rel="alternate" type="application/rss+xml" title="'.$_G['setting']['bbname'].' - '.$navtitle.'" href="'.$_G['siteurl'].'forum.php?mod=rss&fid='.$_G['fid'].'&amp;auth='.$rssauth."\" />\n") : '';
$forumseoset = array(
'seotitle' => $_G['forum']['seotitle'],
@ -148,6 +147,9 @@ $_GET['typeid'] = intval($_GET['typeid']);
if(!empty($_GET['typeid']) && !empty($_G['forum']['threadtypes']['types'][$_GET['typeid']])) {
$navtitle = strip_tags($_G['forum']['threadtypes']['types'][$_GET['typeid']]).' - '.$navtitle;
}
$rsshead = $_G['setting']['rssstatus'] ? ('<link rel="alternate" type="application/rss+xml" title="'.$_G['setting']['bbname'].' - '.$navtitle.'" href="'.$_G['siteurl'].'forum.php?mod=rss&fid='.$_G['fid'].'&amp;auth='.$rssauth."\" />\n") : '';
if(!$metakeywords) {
$metakeywords = $_G['forum']['name'];
}