$jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
$configModel = $jfbcLibrary->getConfigModel();
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php'; // ADD THIS STARTING HERE
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
$aupInstalled = true;
}
else
$aupInstalled = false; // ADD THIS ENDING HERE
// Javascript shouldn't be called, but check to make sure this setting is enabled.
if (!$configModel->getSetting('social_notification_like_enabled'))
exit;
//$commentId = JRequest::getVar('commentID');
$href = JRequest::getVar('href');
if ($aupInstalled) // ADD THIS
AlphaUserPointsHelper::newpoints( 'plgjfbconnect_like_clicked', '', $href,'JFBConnect'); // ADD THIS
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.