Add full text to ActiveCollab's RSS feed

From Stack Overflow
Jump to: navigation, search

This is how you add full RSS text to ActiveCollab's RSS feeds.

Open the file ./application/controllers/FeedController.class.php

At line 204, change this:

$item = $feed->addItem(new Angie_Feed_Item($activity_log_entry->getText(), undo_htmlspecialchars($activity_log_entry->getObjectUrl()), , $activity_log_entry->getCreatedOn()));

To this:

$item = $feed->addItem(new Angie_Feed_Item($activity_log_entry->getText(), undo_htmlspecialchars($activity_log_entry->getObjectUrl()), (method_exists($activity_log_entry->getObject(), "getText") ? $activity_log_entry->getObject()->getText() : ""), $activity_log_entry->getCreatedOn()));

All done.

Personal tools