|
|
@ -176,6 +176,7 @@ Class ListController extends Controller { |
|
|
|
$cates = explode('/', $arr[1]); |
|
|
|
$cates = explode('/', $arr[1]); |
|
|
|
$parentCate = preg_replace("/\/$/", '', "{$arr[0]}{$webroot}"); //删除最后一个斜杠 |
|
|
|
$parentCate = preg_replace("/\/$/", '', "{$arr[0]}{$webroot}"); //删除最后一个斜杠 |
|
|
|
foreach ($cates as $index => $cate) { |
|
|
|
foreach ($cates as $index => $cate) { |
|
|
|
|
|
|
|
if (empty($cate)) {continue;} |
|
|
|
if ($cate == $currentDir['directory']) {break;} |
|
|
|
if ($cate == $currentDir['directory']) {break;} |
|
|
|
|
|
|
|
|
|
|
|
$subcate = "{$parentCate}/{$cate}"; |
|
|
|
$subcate = "{$parentCate}/{$cate}"; |
|
|
|