mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Remove get_registry method
This commit is contained in:
@@ -249,7 +249,7 @@ class Session_Authentication_Native implements Session_Authentication_Interface
|
||||
protected function check_and_revoke_badlogs($ip)
|
||||
{
|
||||
$conn = $this->app['phraseanet.appbox']->get_connection();
|
||||
$registry = $this->app['phraseanet.appbox']->get_registry();
|
||||
$registry = $this->app['phraseanet.registry'];
|
||||
|
||||
$sql = 'SELECT id FROM badlog
|
||||
WHERE (login = :login OR ip = :ip) AND locked="1"';
|
||||
@@ -285,7 +285,7 @@ class Session_Authentication_Native implements Session_Authentication_Interface
|
||||
*/
|
||||
protected function is_captcha_activated(registryInterface $registry)
|
||||
{
|
||||
$registry = $this->app['phraseanet.appbox']->get_registry();
|
||||
$registry = $this->app['phraseanet.registry'];
|
||||
|
||||
return ($registry->get('GV_captchas')
|
||||
&& trim($registry->get('GV_captcha_private_key')) !== ''
|
||||
|
@@ -156,7 +156,7 @@ class Session_Logger
|
||||
WHERE site = :site AND sit_session = :ses_id';
|
||||
|
||||
$params = array(
|
||||
':site' => $databox->get_registry()->get('GV_sit')
|
||||
':site' => $app['phraseanet.registry']->get('GV_sit')
|
||||
, ':ses_id' => $app['session']->get('phrasea_session_id')
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user