diff --git a/Plugin.php b/Plugin.php index 89504f4..7d62201 100644 --- a/Plugin.php +++ b/Plugin.php @@ -14,7 +14,6 @@ class Plugin extends Base { public function initialize() { - $this->dispatcher->addListener('app.bootstrap', array($this, 'onBootstrap')); $this->dispatcher->addListener(AuthenticationManager::EVENT_SUCCESS, array($this, 'onLoginSuccess')); $this->authenticationManager->register(new GoogleAuthProvider($this->container)); @@ -31,9 +30,9 @@ public function initialize() $this->template->hook->attach('template:user:create-remote:form', 'GoogleAuth:user/create_remote'); } - public function onBootstrap() + public function onStartup() { - Translator::load($this->config->getCurrentLanguage(), __DIR__.'/Locale'); + Translator::load($this->language->getCurrentLanguage(), __DIR__.'/Locale'); } public function onLoginSuccess(AuthSuccessEvent $event) @@ -72,7 +71,7 @@ public function getPluginAuthor() public function getPluginVersion() { - return '1.0.1'; + return '1.0.2'; } public function getPluginHomepage() diff --git a/Template/config/integration.php b/Template/config/integration.php index 3bfbb48..30643c9 100644 --- a/Template/config/integration.php +++ b/Template/config/integration.php @@ -9,9 +9,9 @@ = $this->form->label(t('Google Client Secret'), 'google_client_secret') ?> = $this->form->password('google_client_secret', $values) ?> -
= t('Help on Google authentication') ?>
+= t('Help on Google authentication') ?>