Bugfixes and Bootstrap 5 finalized

This commit is contained in:
Joey Kimsey
2024-12-17 22:57:55 -05:00
parent 2220c6cda3
commit a859fb7ace
79 changed files with 2011 additions and 1597 deletions

View File

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