continue with getter/setter removal

This commit is contained in:
Dennis Eichhorn 2023-05-30 04:15:42 +02:00
parent 1f47007e97
commit e140abdf53
3 changed files with 3 additions and 3 deletions

View File

@ -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__ . '/../../../');

View File

@ -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);

View File

@ -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>