ts-website/src/api/getviewerhtml.php
toster234 d1bb250865
Fix the directory path
Fix path to directory with icons.
2019-07-13 22:19:21 +02:00

15 lines
274 B
PHP

<?php
use Wruczek\TSWebsite\ViewerRenderer;
require_once __DIR__ . "/../private/php/load.php";
$html = null;
$viewerRenderer = new ViewerRenderer("../img/ts-icons");
if ($viewerRenderer->checkRequiredData()) {
$html = $viewerRenderer->renderViewer();
}
echo $html;