From 5b8a49750f71997dac1f318dcf810ecb64d3a3d5 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?= Date: Sat, 15 Jun 2024 03:31:36 +0800 Subject: [PATCH] Update channelunit.helper.php --- src/system/helpers/channelunit.helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php index 30da23fa..4cd9b0b0 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -135,14 +135,14 @@ if (!function_exists('GetFileNewName')) { if (!function_exists('GetTypeUrl')) { function GetTypeUrl($typeid, $typedir, $isdefault, $defaultname, $ispart, $namerule2, $moresite = 0, $siteurl = '', $sitepath = '') { - global $cfg_typedir_df, $cfg_rewrite; + global $cfg_cmspath, $cfg_typedir_df, $cfg_rewrite; $typedir = MfTypedir($typedir); $sitepath = MfTypedir($sitepath); //动态栏目 if ($isdefault == -1) { if ($cfg_rewrite == 'Y') { //开启伪静态栏目/list-1、/list-2,则分页/list-1-1、/list-1-2 - return $GLOBALS['cfg_cmspath']."/list-".$typeid.""; + $reurl = $GLOBALS['cfg_cmspath']."/list-".$typeid.""; } else { $reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid; }