mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Use configuration property accessor
This commit is contained in:
@@ -121,7 +121,7 @@ class Session_Logger
|
||||
$params = [
|
||||
':ses_id' => $app['session']->get('session_id'),
|
||||
':usr_login' => $app['authentication']->getUser() ? $app['authentication']->getUser()->get_login() : null,
|
||||
':site_id' => $app['configuration']['main']['key'],
|
||||
':site_id' => $app['conf']->get(['main', 'key']),
|
||||
':usr_id' => $app['authentication']->isAuthenticated() ? $app['authentication']->getUser()->get_id() : null,
|
||||
':browser' => $browser->getBrowser(),
|
||||
':browser_version' => $browser->getExtendedVersion(),
|
||||
@@ -167,7 +167,7 @@ class Session_Logger
|
||||
WHERE site = :site AND sit_session = :ses_id';
|
||||
|
||||
$params = [
|
||||
':site' => $app['configuration']['main']['key']
|
||||
':site' => $app['conf']->get(['main', 'key'])
|
||||
, ':ses_id' => $app['session']->get('session_id')
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user