<?php
declare(strict_types = 1);

class_exists('DB') || die;

require_once(__DIR__ . '/classes/GalleryComments.class.php');

Template::set('template',
[
	'file' => 'comments.tpl.php'
]);

$r = GalleryComments::getCommentsCategory();
if ($r < 0)
{
	Gallery::error();
	return;
}
if ($r < 1)
{
	Gallery::notFound();
	return;
}
?>