mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Correzione warning in configurazione
This commit is contained in:
2
core.php
2
core.php
@@ -168,7 +168,7 @@ if (!API\Response::isAPIRequest()) {
|
||||
|
||||
/* INTERNAZIONALIZZAZIONE */
|
||||
// Istanziamento del gestore delle traduzioni del progetto
|
||||
$lang = !empty($config['lang']) ? $config['lang'] : $_GET['lang'];
|
||||
$lang = !empty($config['lang']) ? $config['lang'] : (isset($_GET['lang']) ? $_GET['lang'] : null);
|
||||
$formatter = !empty($config['formatter']) ? $config['formatter'] : [];
|
||||
$translator = trans();
|
||||
$translator->addLocalePath($docroot.'/locale');
|
||||
|
||||
Reference in New Issue
Block a user