Fixing the login_confirmed hook in the felogin sysext and adding a logout_confirmed...
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Tue, 15 Jan 2008 22:19:48 +0000 (22:19 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Tue, 15 Jan 2008 22:19:48 +0000 (22:19 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2906 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php

index a26fdbd..69d12b3 100644 (file)
@@ -227,7 +227,7 @@ class tx_felogin_pi1 extends tslib_pibase {
                                        // Hook for general actions after after login has been confirmed (by Thomas Danzl <thomas@danzl.org>)
                                if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['login_confirmed']) {
                                        $_params = array();
-                                       foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['newloginbox']['felogin'] as $_funcRef) {
+                                       foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['login_confirmed'] as $_funcRef) {
                                                if ($_funcRef) {
                                                        t3lib_div::callUserFunction($_funcRef, $_params, $this);
                                                }
@@ -389,6 +389,17 @@ class tx_felogin_pi1 extends tslib_pibase {
                                                break;
                                        }
                                } elseif ($this->logintype === 'logout') { // after logout
+
+                                       // Hook for general actions after after logout has been confirmed
+                                       if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['logout_confirmed']) {
+                                               $_params = array();
+                                               foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['logout_confirmed'] as $_funcRef) {
+                                                       if ($_funcRef) {
+                                                               t3lib_div::callUserFunction($_funcRef, $_params, $this);
+                                                       }
+                                               }
+                                       }
+                               
                                        switch ($redirMethod) {
                                                case 'logout':
                                                        if ($this->conf['redirectPageLogout']) {