mirror of
https://github.com/Karaka-Management/oms-Workflow.git
synced 2026-02-12 20:28: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 = new View($this->app->l11nManager, $request, $response);
|
||||||
|
|
||||||
$view->addData('tcoll', $tcoll);
|
$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('instance', $instance);
|
||||||
$view->addData('template', $instance->template);
|
$view->addData('template', $instance->template);
|
||||||
$view->addData('basepath', __DIR__ . '/../../../');
|
$view->addData('basepath', __DIR__ . '/../../../');
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ final class BackendController extends Controller
|
||||||
->with('tags')
|
->with('tags')
|
||||||
->with('tags/title')
|
->with('tags/title')
|
||||||
->where('virtualPath', $path)
|
->where('virtualPath', $path)
|
||||||
->where('tags/title/language', $response->getLanguage())
|
->where('tags/title/language', $response->header->l11n->language)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
list($collection, $parent) = CollectionMapper::getCollectionsByPath($path);
|
list($collection, $parent) = CollectionMapper::getCollectionsByPath($path);
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ if (!empty($template->schema)) :
|
||||||
<?php foreach ($actions as $action) : ?>
|
<?php foreach ($actions as $action) : ?>
|
||||||
<section class="portlet">
|
<section class="portlet">
|
||||||
<div class="portlet-body"><?= $this->printHtml($action['name']); ?></div>
|
<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>
|
</section>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user