Skip to content

Commit

Permalink
Merge pull request #16 from locomotivemtl/fix/category-items-getter
Browse files Browse the repository at this point in the history
Fix: use loadCategoryItems instead of categoryItems
  • Loading branch information
losted authored Mar 31, 2020
2 parents a32efce + 2f253a4 commit cec569f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Charcoal/Cms/Support/Traits/EventManagerAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function eventHasPager()
*/
public function eventCategoryList()
{
$cats = $this->eventManager()->categoryItems();
$cats = $this->eventManager()->loadCategoryItems();
foreach ($cats as $cat) {
yield $this->eventFormatCategory($cat);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Charcoal/Cms/Support/Traits/NewsManagerAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function newsHasPager()
*/
public function newsCategoryList()
{
$cats = $this->newsManager()->categoryItems();
$cats = $this->newsManager()->loadCategoryItems();
foreach ($cats as $cat) {
yield $this->newsFormatCategory($cat);
}
Expand Down

0 comments on commit cec569f

Please sign in to comment.