fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-24 02:48:07 +00:00
parent 3fdbff5cbf
commit 30326a5123

View File

@ -188,8 +188,7 @@ final class BackendController extends Controller
$view->data['interface'] = $interface;
$view->data['db'] = $this->app->dbPool->get();
$lang = \is_file(
$langFile = $interface->source->getAbsolutePath() . '/'
$lang = \is_file($langFile = $interface->source->getAbsolutePath() . '/'
. $interface->source->name
. '/Lang/' . $response->header->l11n->language . '.lang.php'
) ? include $langFile : [];
@ -228,8 +227,7 @@ final class BackendController extends Controller
$view->data['interface'] = $interface;
$view->data['db'] = $this->app->dbPool->get();
$lang = \is_file(
$langFile = $interface->source->getAbsolutePath() . '/'
$lang = \is_file($langFile = $interface->source->getAbsolutePath() . '/'
. $interface->source->name
. '/Lang/' . $response->header->l11n->language . '.lang.php'
) ? include $langFile : [];