mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-11 12:28:41 +00:00
fix bugs
This commit is contained in:
parent
b6b326d8f2
commit
7a22d48a99
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user