POST TIME:2018-09-18 00:23
dedecms是廣大站長(zhǎng)非常喜歡的CMS建站系統(tǒng),其小巧方便而且功能強(qiáng)大,但是也有一些BUG,比如開(kāi)啟多站點(diǎn)支持絕對(duì)網(wǎng)址后生成RSS錯(cuò)誤的問(wèn)題,
最終方法還是需要修改include目錄下的核心文件,方法如下:
打開(kāi)系統(tǒng)文件:include/arc.rssview.class.php
找到
$this->TypeFields['typelink'] = $GLOBALS['cfg_basehost'].$this->TypeLink->GetOneTypeUrl( $this->TypeFields);
改為
$this->TypeFields['typelink'] = ($GLOBALS['cfg_multi_site']=="Y")?$this->TypeLink->GetOneTypeUrl( $this->TypeFields) : $GLOBALS['cfg_basehost'].$this->TypeLink->GetOneTypeUrl( $this->TypeFields);
這個(gè)是目錄的 同樣文章的也加一個(gè)是否開(kāi)啟了絕對(duì)地址的判斷
找到
$row["fullurl"] = $GLOBALS["cfg_basehost"].$row["arcurl"];
改為
$row["fullurl"] = ($GLOBALS['cfg_multi_site']=="Y")?$row["arcurl"]: $GLOBALS["cfg_basehost"].$row["arcurl"];
