mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-25 22:30:15 +02:00
Use __DIR__ instead of template path
This commit is contained in:
parent
0da524fefe
commit
181131f7f3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user