修复 rss 标签中 title 属性中板块名为空的 BUG
This commit is contained in:
parent
f3384c5b95
commit
c4699011c3
|
@ -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'].'&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'].'&auth='.$rssauth."\" />\n") : '';
|
||||
|
||||
if(!$metakeywords) {
|
||||
$metakeywords = $_G['forum']['name'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue