Browse Source

bug fix for bread

master
filesite 5 months ago
parent
commit
1285d68fa3
  1. 1
      themes/beauty/controller/ListController.php

1
themes/beauty/controller/ListController.php

@ -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}";

Loading…
Cancel
Save