Explorar el Código

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

tags/6.3.0
叙述、别离 hace 7 meses
padre
commit
e9c5549e65
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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 Ver fichero

@@ -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 Ver fichero

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


Cargando…
Cancelar
Guardar