GavickPro / News-Show-Pro-GK5

Advanced Joomla! content module.
28 stars 37 forks source link

GK5 & com_ajax #361

Closed aaron-harding closed 8 years ago

aaron-harding commented 8 years ago

On a recent project, I have a simple bookmarks module which makes use of com_ajax to bookmark a page through an ajax request.

When installing and enabling GK5, these requests are broken with the following error:

Fatal error: Call to undefined method JDocumentJson::getHeadData() in /home/***/modules/mod_news_pro_gk5/helper.php on line 215

/modules/mod_news_pro_gk5/helper.php: Line 215 $headData = $document->getHeadData();

$document in the context of com_ajax is an instance of JDocumentJson where the getHeadData method is not defined. Before calling the getHeadData this should check that $document is an instance of JDocumentHtml.

dziudek commented 8 years ago
aaron-harding commented 8 years ago

Hi,

That patch fixed the issue.