Jump to content

Expand the contentPostedIn() method to include reviews


teraßyte

Recommended Posts

As per title, right now the function \IPS\Node\Model::contentPostedIn() works only if the class has a $commentClass value defined. If you have an application that only has reviews and not comments the method does nothing. The review of an Item is something a user has posted too, not just a comment.

For now I have added a new method in my own Item class that works in a similar way, using the $reviewClass variable of course.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...