瀏覽代碼

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

tags/6.3.0
叙述、别离 1 年之前
父節點
當前提交
e9c5549e65
共有 2 個檔案被更改,包括 2 行新增2 行删除
  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 查看文件

@@ -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 查看文件

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


Loading…
取消
儲存