Keyword

jw_disqus 3.1 Content Plugin - Check if $row->text is set first

  • michael.babker
  • michael.babker's Avatar Topic Author
  • Offline
  • New Member
More
12 years 9 months ago #46264 by michael.babker
Hello,

When using the JW Disqus content plugin, I've found that the plugin can undo changes other content plugins make when using the category view in J! 2.5.1 (theoretically, this impacts back to 1.6.0 as well).  To bypass this in my own content plugin, I first check if $row text isset before setting it as $row->introtext.  At approximately line 251 in the 3.1 release, I've made the following change:
// Set '$row->text' to $row->introtext' for J!1.6+
if(version_compare(JVERSION,'1.6.0','ge')) {
	// First, see if '$row->text' is defined
	if (!isset($row->text)) {
		$row->text = $row->introtext;
	}
}

This resulted in the expected output for me on my site.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum