HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Plugin uses deprecated "CommentData" instead of "Data('Comments')"

AccentAccent
edited August 2014 in Feedback

Hi,

When turning on debug view with the plugin enabled, discussions break completely. The reason is that the plugin uses the now deprecated DiscussionController->CommentData on line 90 of class.thankfulpeople.plugin.php.

Changing it to Data('Comments') seems to solve the issue – the whole line would be:

$CommentIDs = ConsolidateArrayValuesByKey($Sender->Data('Comments')->Result(), 'CommentID');

After the fix the discussions display two bits of debug info though:

CommentModel->PageWhere()

Comment.Page.30.33.1: false

CommentModel->CachePageWhere()
Comment.Page.30.33.1: array ( 0 => '2014-08-05 09:05:41', )

Not sure if that's important.

Cheers.

Tagged:
Sign In or Register to comment.