mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-11 20:38:42 +00:00
Fix relative path
This commit is contained in:
parent
a086a2c5b2
commit
01a55f1d4f
|
|
@ -133,7 +133,7 @@ final class ApiController extends Controller
|
|||
break;
|
||||
default:
|
||||
$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');
|
||||
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
$reportLanguage = include __DIR__ . '/../../../../' . \ltrim($tcoll['lang']->getPath(), '/');
|
||||
$lang = $reportLanguage[$cLang];
|
||||
$reportLanguage = isset($tcoll['lang']) ? include __DIR__ . '/../../../../' . \ltrim($tcoll['lang']->getPath(), '/') : [];
|
||||
$lang = $reportLanguage[$cLang] ?? [];
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
<div class="row" style="height: calc(100% - 85px);">
|
||||
|
|
@ -86,7 +86,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</select>
|
||||
<tr>
|
||||
<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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user