mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-01-25 15:28:41 +00:00
simplify getLanguage call in request
This commit is contained in:
parent
aa60478886
commit
79e2591d7b
|
|
@ -161,7 +161,7 @@ final class BackendController extends Controller
|
|||
|
||||
$view->addData('interface', $interface);
|
||||
|
||||
$lang = include __DIR__ . '/../Interfaces/' . $interface->getInterfacePath() . '/Lang/' . $response->getHeader()->getL11n()->getLanguage() . '.lang.php';
|
||||
$lang = include __DIR__ . '/../Interfaces/' . $interface->getInterfacePath() . '/Lang/' . $response->getLanguage() . '.lang.php';
|
||||
$view->addData('lang', $lang);
|
||||
|
||||
return $view;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user