Skip to content

Commit

Permalink
Fix tags RSS Feed (#21690)
Browse files Browse the repository at this point in the history
* Fix tags RSS feed. Fixes #18249

* Fix PHPCS
  • Loading branch information
wilsonge authored and Michael Babker committed Sep 3, 2018
1 parent 501d116 commit b2b7581
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions components/com_tags/views/tag/view.feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,26 @@ class TagsViewTag extends JViewLegacy
*/
public function display($tpl = null)
{
$app = JFactory::getApplication();
$document = JFactory::getDocument();
$document->link = JRoute::_(TagsHelperRoute::getTagRoute($app->input->getInt('id')));
$app = JFactory::getApplication();
$document = JFactory::getDocument();
$ids = $app->input->get('id');
$i = 0;
$tagIds = '';
$filter = new JFilterInput;

foreach ($ids as $id)
{
if ($i !== 0)
{
$tagIds .= '&';
}

$tagIds .= 'id[' . $i . ']=' . $filter->clean($id, 'INT');

$i++;
}

$document->link = JRoute::_('index.php?option=com_tags&view=tag&' . $tagIds);

$app->input->set('limit', $app->get('feed_limit'));
$siteEmail = $app->get('mailfrom');
Expand Down

0 comments on commit b2b7581

Please sign in to comment.