mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-04 00:31:50 +02:00
Fixes the main menu for registrars
This commit is contained in:
parent
66500a4939
commit
8dcbaed649
2 changed files with 10 additions and 7 deletions
|
@ -106,12 +106,15 @@ $container->set('view', function ($container) use ($translations, $uiLang, $lang
|
|||
]);
|
||||
$view->getEnvironment()->addGlobal('uiLang', $uiLang);
|
||||
$view->getEnvironment()->addGlobal('lang', $lang);
|
||||
$view->getEnvironment()->addGlobal('flash', $container->get('flash'));
|
||||
$view->getEnvironment()->addGlobal('flash', $container->get('flash'));
|
||||
if (isset($_SESSION['_screen_mode'])) {
|
||||
$view->getEnvironment()->addGlobal('screen_mode', $_SESSION['_screen_mode']);
|
||||
} else {
|
||||
$view->getEnvironment()->addGlobal('screen_mode', 'light');
|
||||
}
|
||||
if (isset($_SESSION['auth_roles'])) {
|
||||
$view->getEnvironment()->addGlobal('roles', $_SESSION['auth_roles']);
|
||||
}
|
||||
|
||||
$db = $container->get('db');
|
||||
$query = 'SELECT r.currency, ru.registrar_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue