Skip to content

Commit

Permalink
Merge 0ca7709 into fcb1ac0
Browse files Browse the repository at this point in the history
  • Loading branch information
RyujiAMANO committed Dec 13, 2019
2 parents fcb1ac0 + 0ca7709 commit 0f935e5
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions View/Elements/BbsArticles/all/index_bbs_article.ctp
Expand Up @@ -67,13 +67,16 @@
$type = $bbsFrameSetting['display_type'];
}
foreach ($treeLists[$bbsArticle['BbsArticleTree']['id']] as $treeId => $childArticle) {
echo $this->element(
'BbsArticles/' . $type . '/index_bbs_child_article',
array(
'bbsArticle' => $bbsArticleTitles[$treeId],
'indent' => substr_count($childArticle, '_') + 1
)
);
// 一時保存など権限の関係で見られない記事は$bbsArticleTitlesにセットされないので。
if (isset($bbsArticleTitles[$treeId])) {
echo $this->element(
'BbsArticles/' . $type . '/index_bbs_child_article',
array(
'bbsArticle' => $bbsArticleTitles[$treeId],
'indent' => substr_count($childArticle, '_') + 1
)
);
}
}
echo '</article>';
}

0 comments on commit 0f935e5

Please sign in to comment.