From 34490692cd922bc8a7685c2c89af8939592620d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <2449271624@qq.com> Date: Mon, 27 Nov 2023 10:39:46 +0800 Subject: [PATCH] Update listview.class.php --- src/system/archive/listview.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/system/archive/listview.class.php b/src/system/archive/listview.class.php index 814eb249..7eb180a0 100755 --- a/src/system/archive/listview.class.php +++ b/src/system/archive/listview.class.php @@ -588,7 +588,9 @@ class ListView //跳转网址 return $this->Fields['typedir']; } - CreateDir(MfTypedir($this->Fields['typedir'])); + if ($this->TypeLink->TypeInfos['isdefault'] != -1) { + CreateDir(MfTypedir($this->Fields['typedir'])); + } $makeUrl = $this->GetMakeFileRule($this->Fields['id'], "index", MfTypedir($this->Fields['typedir']), $this->Fields['defaultname'], $this->Fields['namerule2']); $makeUrl = preg_replace("/\/{1,}/", "/", $makeUrl); $makeFile = $this->GetTruePath().$makeUrl; @@ -629,7 +631,9 @@ class ListView header("Location:$gotourl"); exit(); } - CreateDir(MfTypedir($this->Fields['typedir'])); + if ($this->TypeLink->TypeInfos['isdefault'] != -1) { + CreateDir(MfTypedir($this->Fields['typedir'])); + } $makeUrl = $this->GetMakeFileRule($this->Fields['id'], "index", MfTypedir($this->Fields['typedir']), $this->Fields['defaultname'], $this->Fields['namerule2']); $makeFile = $this->GetTruePath().$makeUrl; if ($nmfa == 0) {