| @@ -511,7 +511,7 @@ class Archives | |||||
| if ($this->TempSource == '') { | if ($this->TempSource == '') { | ||||
| $tempfile = $this->GetTempletFile(); | $tempfile = $this->GetTempletFile(); | ||||
| if (!file_exists($tempfile) || !is_file($tempfile)) { | if (!file_exists($tempfile) || !is_file($tempfile)) { | ||||
| echo "文档id:{$this->Fields['id']},标题:{$this->Fields['title']},主题模板文件不存在,无法发布文档"; | |||||
| echo "文档id:{$this->Fields['id']},标题:{$this->Fields['title']},主题模板文件不存在,无法更新文档"; | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| $this->dtp->LoadTemplate($tempfile); | $this->dtp->LoadTemplate($tempfile); | ||||
| @@ -250,7 +250,7 @@ class ListView | |||||
| $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_default.htm"; | $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_default.htm"; | ||||
| } | } | ||||
| if (!file_exists($tempfile) || !is_file($tempfile)) { | if (!file_exists($tempfile) || !is_file($tempfile)) { | ||||
| echo "栏目:{$this->TypeLink->TypeInfos['typename']},主题模板文件不存在,无法发布文档"; | |||||
| echo "栏目:{$this->TypeLink->TypeInfos['typename']},主题模板文件不存在,无法更新栏目"; | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| $this->dtp->LoadTemplate($tempfile); | $this->dtp->LoadTemplate($tempfile); | ||||
| @@ -110,7 +110,7 @@ class SearchView | |||||
| $this->CountRecord(); | $this->CountRecord(); | ||||
| $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/search.htm"; | $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/search.htm"; | ||||
| if (!file_exists($tempfile) || !is_file($tempfile)) { | if (!file_exists($tempfile) || !is_file($tempfile)) { | ||||
| echo "搜索模板文件不存在,无法解析"; | |||||
| echo "搜索模板文件不存在,无法更新搜索"; | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| $this->dtp->LoadTemplate($tempfile); | $this->dtp->LoadTemplate($tempfile); | ||||
| @@ -209,7 +209,7 @@ class SgListView | |||||
| $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_default_sg.htm"; | $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_default_sg.htm"; | ||||
| } | } | ||||
| if (!file_exists($tempfile) || !is_file($tempfile)) { | if (!file_exists($tempfile) || !is_file($tempfile)) { | ||||
| echo "栏目:{$this->TypeLink->TypeInfos['typename']},主题模板文件不存在,无法发布文档"; | |||||
| echo "栏目:{$this->TypeLink->TypeInfos['typename']},主题模板文件不存在,无法更新栏目"; | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| $this->dtp->LoadTemplate($tempfile); | $this->dtp->LoadTemplate($tempfile); | ||||
| @@ -60,7 +60,7 @@ class SpecView | |||||
| $this->CountRecord(); | $this->CountRecord(); | ||||
| $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_spec.htm"; | $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_spec.htm"; | ||||
| if (!file_exists($tempfile) || !is_file($tempfile)) { | if (!file_exists($tempfile) || !is_file($tempfile)) { | ||||
| echo "专题主题模板文件不存在,无法发布文档"; | |||||
| echo "专题主题模板文件不存在,无法更新专题"; | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| $this->dtp->LoadTemplate($tempfile); | $this->dtp->LoadTemplate($tempfile); | ||||
| @@ -71,7 +71,7 @@ class TagList | |||||
| //初始化模板 | //初始化模板 | ||||
| $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style'].'/'.$this->Templet; | $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style'].'/'.$this->Templet; | ||||
| if (!file_exists($tempfile) || !is_file($tempfile)) { | if (!file_exists($tempfile) || !is_file($tempfile)) { | ||||
| echo "标签主题模板文件不存在,无法发布文档"; | |||||
| echo "标签主题模板文件不存在,无法更新标签"; | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| $this->dtp->LoadTemplate($tempfile); | $this->dtp->LoadTemplate($tempfile); | ||||