diff --git a/themes/beauty/controller/ListController.php b/themes/beauty/controller/ListController.php index 4c80e5e..899b62f 100644 --- a/themes/beauty/controller/ListController.php +++ b/themes/beauty/controller/ListController.php @@ -98,11 +98,6 @@ Class ListController extends Controller { $htmlReadme = $readmeFile['htmlReadme']; } - - //获取目录面包屑 - $subcate = !empty($scanResults[$cateId]) ? $scanResults[$cateId] : array(); - $breadcrumbs = $this->getBreadcrumbs($currentDir, $cachedParentData, $scanner); - //图片、视频类型筛选支持 $showType = $this->get('show', 'all'); if ($showType == 'image' && !empty($scanResults[$cateId]['files'])) { @@ -117,6 +112,10 @@ Class ListController extends Controller { }); } + //获取目录面包屑 + $subcate = !empty($scanResults[$cateId]) ? $scanResults[$cateId] : array(); + $breadcrumbs = $this->getBreadcrumbs($currentDir, $cachedParentData, $scanner); + //获取当前目录下的readme $cateReadmeFile = $scanner->getDefaultReadme(); if (!empty($cateReadmeFile)) {