if ($href)
$commentString .= ' href="' . $href . '"';
else if ($xid) //Use deprecated xid to keep old comments: http://developers.facebook.com/blog/post/472
$commentString .= ' xid="' . $xid . '" migrated="1"';
else { // Add this section, starting from this line
$url = JURI::current();
$juri = & JURI::getInstance();
$query = $juri->getQuery();
if ($query)
$url .= '?' . $query;
$commentString .= ' href="'.$url.'"';
}Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
