Browse Source

Update channelunit.helper.php

tags/6.3.2
叙述、别离 10 months ago
parent
commit
5b8a49750f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/system/helpers/channelunit.helper.php

+ 2
- 2
src/system/helpers/channelunit.helper.php View File

@@ -135,14 +135,14 @@ if (!function_exists('GetFileNewName')) {
if (!function_exists('GetTypeUrl')) { if (!function_exists('GetTypeUrl')) {
function GetTypeUrl($typeid, $typedir, $isdefault, $defaultname, $ispart, $namerule2, $moresite = 0, $siteurl = '', $sitepath = '') 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); $typedir = MfTypedir($typedir);
$sitepath = MfTypedir($sitepath); $sitepath = MfTypedir($sitepath);
//动态栏目 //动态栏目
if ($isdefault == -1) { if ($isdefault == -1) {
if ($cfg_rewrite == 'Y') { if ($cfg_rewrite == 'Y') {
//开启伪静态栏目/list-1、/list-2,则分页/list-1-1、/list-1-2 //开启伪静态栏目/list-1、/list-2,则分页/list-1-1、/list-1-2
return $GLOBALS['cfg_cmspath']."/list-".$typeid."";
$reurl = $GLOBALS['cfg_cmspath']."/list-".$typeid."";
} else { } else {
$reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid; $reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid;
} }


Loading…
Cancel
Save