1. 程式人生 > >dedecms新增圖片縮圖

dedecms新增圖片縮圖

開啟\include\arc.archives.class.php

查詢(ctrl+f)下面程式碼:

if($this->ChannelUnit->ChannelInfos['issystem']!=-1)

將:

$query = "Select arc.*,tp.reid,tp.typedir,ch.addtable from `dede_archives` arc left join dede_arctype tp on tp.id=arc.typeid left join dede_channeltype as ch on arc.channel = ch.id where arc.id='$aid' "; 

$this->Fields = $this->dsql->GetOne($query);

替換為:

$query = "Select arc.*,tp.reid,tp.typedir,tp.typeimg,ch.addtable 

from `dede_archives` arc 

left join dede_arctype tp on tp.id=arc.typeid 

left join dede_channeltype as ch on arc.channel = ch.id 

where arc.id='$aid' "; 

$this->Fields = $this->dsql->GetOne($query);