This commit is contained in:
Dennis Eichhorn 2021-11-29 20:08:13 +01:00
parent b6b326d8f2
commit 7a22d48a99
2 changed files with 5 additions and 5 deletions

View File

@ -148,7 +148,7 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/Helper/Theme/Backend/helper-single');
$tcoll = [];
$files = $template->getSource()->getSources();
$files = $template->source->getSources();
foreach ($files as $tMedia) {
$lowerPath = \strtolower($tMedia->getPath());
@ -186,7 +186,7 @@ final class BackendController extends Controller
}
}
if (!$template->isStandalone()) {
if (!$template->isStandalone) {
if (!isset($tcoll['template'])) {
throw new \Exception('No template file detected.');
}
@ -202,7 +202,7 @@ final class BackendController extends Controller
if (!($report instanceof NullReport)) {
/** @var Media[] $files */
$files = $report->getSource()->getSources();
$files = $report->source->getSources();
foreach ($files as $media) {
$rcoll[$media->name . '.' . $media->extension] = $media;

View File

@ -66,7 +66,7 @@ echo $this->getData('nav')->render(); ?>
<option value="<?= $this->printHtml($key); ?>"<?= $this->printHtml($key === $cLang ? ' selected' : ''); ?>><?= $this->printHtml($language[':language']); ?>
<?php endforeach; ?>
</select>
<?php if (!$template->isStandalone()) : ?><tr>
<?php if (!$template->isStandalone) : ?><tr>
<td><label for="iReport"><?= $this->getHtml('Report'); ?></label>
<tr>
<td><select id="iReport" name="report">
@ -126,7 +126,7 @@ echo $this->getData('nav')->render(); ?>
<div class="portlet-body">
<table class="list wf-100">
<tbody>
<?php if (!$template->isStandalone() && !($report instanceof \Modules\Helper\Models\NullReport)) : ?>
<?php if (!$template->isStandalone && !($report instanceof \Modules\Helper\Models\NullReport)) : ?>
<tr>
<th colspan="2"><?= $this->getHtml('Report'); ?>
<tr>