소스 검색

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);
$rquery = join(',', $GLOBALS['idArray']);
$rquery = preg_replace("/,$/", '', $rquery);
$rquery = preg_replace("/,$/", "", $rquery);
return $rquery;
}
//递归逻辑
@@ -365,7 +365,7 @@ function GetSonIdsLogic($id, $sArr, $channel = 0, $addthis = false)
function MfTypedir($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);
return $typedir;
}


불러오는 중...
취소
저장