Use __DIR__ instead of template path

This commit is contained in:
slawkens 2025-06-24 12:44:34 +02:00
parent 0da524fefe
commit 181131f7f3

View File

@ -454,7 +454,7 @@ foreach($config['menu_categories'] as $id => $cat) {
foreach($config['boxes'] as $box) {
/** @var string $template_name */
$file = TEMPLATES . $template_name . '/boxes/' . $box . '.php';
$file = __DIR__ . '/boxes/' . $box . '.php';
if(file_exists($file)) {
include($file); ?>
<?php