mirror of https://github.com/1099438829/apeblog
修正模板问题
This commit is contained in:
parent
4968deef4a
commit
2426d7beb4
|
|
@ -50,13 +50,13 @@ class Article extends Base
|
|||
//读取列表页模板
|
||||
$listTmp='';
|
||||
if($dc['type']==0){
|
||||
$listTmp=$dc['template_lists'];
|
||||
$listTmp=$dc['template'];
|
||||
if(!$listTmp){
|
||||
$this->error('请在栏目分类中,指定当前栏目的列表模板!');
|
||||
}
|
||||
}
|
||||
elseif($dc['type']==1){
|
||||
$listTmp=$dc['template_index'];
|
||||
$listTmp=$dc['template'];
|
||||
if(!$listTmp){
|
||||
$this->error('请在栏目分类中,指定当前栏目的单篇模板!');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue