mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-31 13:48:41 +00:00
Fix relative path
This commit is contained in:
parent
a086a2c5b2
commit
01a55f1d4f
|
|
@ -133,7 +133,7 @@ final class ApiController extends Controller
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$response->getHeader()->set('Content-Type', 'text/html; charset=utf-8');
|
$response->getHeader()->set('Content-Type', 'text/html; charset=utf-8');
|
||||||
$view->setTemplate('/' . \substr($view->getData('tcoll')['template']->getPath(), 0, -8));
|
$view->setTemplate('/Modules/' . \substr($view->getData('tcoll')['template']->getPath(), 0, -8));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@ $template = $this->getData('template');
|
||||||
$report = $this->getData('report');
|
$report = $this->getData('report');
|
||||||
|
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
$reportLanguage = include __DIR__ . '/../../../../' . \ltrim($tcoll['lang']->getPath(), '/');
|
$reportLanguage = isset($tcoll['lang']) ? include __DIR__ . '/../../../../' . \ltrim($tcoll['lang']->getPath(), '/') : [];
|
||||||
$lang = $reportLanguage[$cLang];
|
$lang = $reportLanguage[$cLang] ?? [];
|
||||||
|
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
<div class="row" style="height: calc(100% - 85px);">
|
<div class="row" style="height: calc(100% - 85px);">
|
||||||
|
|
@ -86,7 +86,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
</select>
|
</select>
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="button" value="<?= $this->getHtml('Export'); ?>"
|
<td><input type="button" value="<?= $this->getHtml('Export'); ?>"
|
||||||
data-ropen="/{#lang}/api/helper/export.php?{type=#iExport}{lang=#iLang}{QUERY}">
|
data-ropen="{#lang}/api/helper/export.php?{type=#iExport}{lang=#iLang}{QUERY}">
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user