Receiving the following error when using the generic feeds section of the module:
warning: Missing argument 1 for theme_activitystream_feed_icon() in PATH/sites/all/modules/activitystream/activitystream_feed/activitystream_feed.module on line 112.

I have created a view using activity stream nodes (I have a use case where I cannot use the regular block output for the user, but need to show a stream block when a node that is being used for node profile, and is currently associated to a particular user). Not sure if that has anything to do with this.

I am getting the RSS icon in the output and I get a warning for each one of the icons output.

As a quick fix I changed line 112 in activitystream_feed/activitystream_feed.module from:
function theme_activitystream_feed_icon($params) {
to:
function theme_activitystream_feed_icon($params=NULL) {

So there is a default value for the parameters. The warnings go away with this change. I have attached a patch.

CommentFileSizeAuthor
theme_activitystream_feed_icon.patch475 bytescarsonblack

Comments

akalsey’s picture

Status: Needs review » Fixed

Fixed in dev

akalsey’s picture

Status: Fixed » Closed (fixed)

In beta2