瀏覽代碼

Update channelunit.helper.php

tags/6.3.0
叙述、别离 1 年之前
父節點
當前提交
cc964a64cd
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/system/helpers/channelunit.helper.php

+ 2
- 2
src/system/helpers/channelunit.helper.php 查看文件

@@ -339,7 +339,7 @@ function GetSonIds($id, $channel = 0, $addthis = true)
} }
GetSonIdsLogic($id, $cfg_Cs, $channel, $addthis); GetSonIdsLogic($id, $cfg_Cs, $channel, $addthis);
$rquery = join(',', $GLOBALS['idArray']); $rquery = join(',', $GLOBALS['idArray']);
$rquery = preg_replace("/,$/", '', $rquery);
$rquery = preg_replace("/,$/", "", $rquery);
return $rquery; return $rquery;
} }
//递归逻辑 //递归逻辑
@@ -365,7 +365,7 @@ function GetSonIdsLogic($id, $sArr, $channel = 0, $addthis = false)
function MfTypedir($typedir) function MfTypedir($typedir)
{ {
if (preg_match("/^(http|https|ftp):/i", $typedir)) return $typedir; if (preg_match("/^(http|https|ftp):/i", $typedir)) return $typedir;
$typedir = str_replace("{cmspath}", $typedir);
$typedir = str_replace("{cmspath}", "/", $typedir);
$typedir = preg_replace("/\/{1,}/", "/", $typedir); $typedir = preg_replace("/\/{1,}/", "/", $typedir);
return $typedir; return $typedir;
} }


Loading…
取消
儲存