mirror of
https://github.com/Karaka-Management/oms-Workflow.git
synced 2026-01-11 06:48:41 +00:00
continue with getter/setter removal
This commit is contained in:
parent
1f47007e97
commit
e140abdf53
|
|
@ -324,7 +324,7 @@ final class ApiController extends Controller
|
|||
$view = new View($this->app->l11nManager, $request, $response);
|
||||
|
||||
$view->addData('tcoll', $tcoll);
|
||||
$view->addData('lang', $request->getData('lang') ?? $request->getLanguage());
|
||||
$view->addData('lang', $request->getData('lang') ?? $request->header->l11n->language);
|
||||
$view->addData('instance', $instance);
|
||||
$view->addData('template', $instance->template);
|
||||
$view->addData('basepath', __DIR__ . '/../../../');
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ final class BackendController extends Controller
|
|||
->with('tags')
|
||||
->with('tags/title')
|
||||
->where('virtualPath', $path)
|
||||
->where('tags/title/language', $response->getLanguage())
|
||||
->where('tags/title/language', $response->header->l11n->language)
|
||||
->execute();
|
||||
|
||||
list($collection, $parent) = CollectionMapper::getCollectionsByPath($path);
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ if (!empty($template->schema)) :
|
|||
<?php foreach ($actions as $action) : ?>
|
||||
<section class="portlet">
|
||||
<div class="portlet-body"><?= $this->printHtml($action['name']); ?></div>
|
||||
<div class="portlet-body"><?= $this->printHtml($action['description'][$this->request->getLanguage()]); ?></div>
|
||||
<div class="portlet-body"><?= $this->printHtml($action['description'][$this->request->header->l11n->language]); ?></div>
|
||||
</section>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user