Browse Source

优化404错误返回主页反正浏览丢失

tags/6.3.0
叙述、别离 6 months ago
parent
commit
e9c5549e65
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/system/archive/taglist.class.php
  2. +1
    -1
      src/system/helpers/extend.helper.php

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

@@ -61,7 +61,7 @@ class TagList
if (!empty($this->Tag)) {
$this->TagInfos = $this->dsql->GetOne("SELECT * FROM `#@__tagindex` where id = '{$this->Tag}' ");
if (!is_array($this->TagInfos)) {
ShowMsg('当前标签不存在,系统自动返回标签首页', 'tags.php');
ShowMsg('当前标签不存在,系统自动返回主页', '/');
exit();
}
$this->Fields['title'] = empty($this->TagInfos['title']) ? $this->TagInfos['tag'] : $this->TagInfos['title'];


+ 1
- 1
src/system/helpers/extend.helper.php View File

@@ -29,7 +29,7 @@ if (!function_exists('ParCv')) {
if (!function_exists('ParamError')) {
function ParamError()
{
ShowMsg('当前网页不存在,系统自动返回首页', 'index.php');
ShowMsg('当前网页不存在,系统自动返回主页', '/');
exit();
}
}


Loading…
Cancel
Save