Browse Source

提示优化

tags/6.2.8
叙述、别离 1 year ago
parent
commit
50e46a3e53
3 changed files with 3 additions and 4 deletions
  1. +1
    -2
      src/system/archive/archives.class.php
  2. +1
    -1
      src/system/archive/listview.class.php
  3. +1
    -1
      src/system/archive/sglistview.class.php

+ 1
- 2
src/system/archive/archives.class.php View File

@@ -511,8 +511,7 @@ class Archives
if ($this->TempSource == '') {
$tempfile = $this->GetTempletFile();
if (!file_exists($tempfile) || !is_file($tempfile)) {
echo "文档id:{$this->Fields['id']} - {$this->TypeLink->TypeInfos['typename']} - {$this->Fields['title']}<br>";
echo "主题模板文件不存在,无法发布文档";
echo "文档id:{$this->Fields['id']},标题:{$this->Fields['title']},主题模板文件不存在,无法发布文档";
exit();
}
$this->dtp->LoadTemplate($tempfile);


+ 1
- 1
src/system/archive/listview.class.php View File

@@ -250,7 +250,7 @@ class ListView
$tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_default.htm";
}
if (!file_exists($tempfile) || !is_file($tempfile)) {
echo "主题模板文件不存在,无法发布文档";
echo "栏目:{$this->TypeLink->TypeInfos['typename']},主题模板文件不存在,无法发布文档";
exit();
}
$this->dtp->LoadTemplate($tempfile);


+ 1
- 1
src/system/archive/sglistview.class.php View File

@@ -209,7 +209,7 @@ class SgListView
$tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_default_sg.htm";
}
if (!file_exists($tempfile) || !is_file($tempfile)) {
echo "主题模板文件不存在,无法发布文档";
echo "栏目:{$this->TypeLink->TypeInfos['typename']},主题模板文件不存在,无法发布文档";
exit();
}
$this->dtp->LoadTemplate($tempfile);


Loading…
Cancel
Save