Use configuration property accessor

This commit is contained in:
Romain Neutron
2013-11-18 18:45:25 +01:00
parent 94be7c5498
commit 7e0a3c7338
87 changed files with 209 additions and 265 deletions

View File

@@ -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')
];