Merge branch 'main' into allthebookmarks-com

This commit is contained in:
Joey Kimsey
2025-01-30 13:53:35 -05:00
71 changed files with 594 additions and 274 deletions

View File

@ -49,13 +49,13 @@ class Comments extends AdminController {
$this->index();
}
public function viewComments( $contentIID = null ) {
if ( empty( $contentIID ) ) {
public function viewComments( $contentID = null ) {
if ( empty( $contentID ) ) {
Issues::add( 'error', 'Content ID not found.' );
return $this->index();
}
$contentData = self::$comments->findById( $data );
if ( empty( $contentIID ) ) {
if ( empty( $contentID ) ) {
return Views::view( 'comments.list', $commentData );
}
Issues::add( 'error', 'Comment not found.' );