Skip to content

Commit

Permalink
Update jcomments.php
Browse files Browse the repository at this point in the history
Added B/C for old components for main show() method.
  • Loading branch information
Globulopolis committed May 16, 2024
1 parent 0a2d4b4 commit c344807
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions component/site/jcomments.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,23 @@
*/
class JComments
{
/**
* Alias for JComments::show(), left only for B/C reasons. Do not use it! Use onJCommentsShow event if possible.
*
* @param integer $objectID Comment ID.
* @param string $objectGroup Component system name.
* @param string $objectTitle Item title.
*
* @return string
*
* @throws Exception
* @since 4.0
*/
public static function showComments($objectID, $objectGroup = 'com_content', $objectTitle = '')
{
return self::show($objectID, $objectGroup, $objectTitle);
}

/**
* The main function that displays comments list & form (if needed).
*
Expand Down

0 comments on commit c344807

Please sign in to comment.