Skip to content

Commit

Permalink
Removed addCategory group
Browse files Browse the repository at this point in the history
It’s an element so can be added using the addElement method
  • Loading branch information
joshuabaker committed Sep 2, 2015
1 parent 90421c3 commit 4a12f9c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions sitemap/services/SitemapService.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,24 +126,6 @@ public function addSection(SectionModel $section, $changefreq = null, $priority
}
}

/**
* Adds all entries related to the category to the sitemap.
*
* @param CategoryModel $category
* @param string $changefreq
* @param string $priority
*/
public function addCategory(CategoryModel $category, $changefreq = null, $priority = null)
{
$criteria = craft()->elements->getCriteria(ElementType::Entry);
$criteria->category = $category;

$entries = $criteria->find();
foreach ($entries as $entry) {
$this->addElement($entry, $changefreq, $priority);
}
}

/**
* Adds all entries related to the group to the sitemap.
*
Expand Down

0 comments on commit 4a12f9c

Please sign in to comment.