Fixed bug #13788: [felogin] Redirects use incorrect function parameters
authorSteffen Kamper <info@sk-typo3.de>
Mon, 12 Apr 2010 22:44:24 +0000 (22:44 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 12 Apr 2010 22:44:24 +0000 (22:44 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7318 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index bcb02c4..53fc22c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-04-13  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #13788: [felogin] Redirects use incorrect function parameters
        * Updated manual of felogin (thanks to Jigal van Hemert and Jeff Segars)
        * Reverted Update #14063: Updated ExtJs library from 3.1.1 to 3.2 Final
 
index d1a7a78..f51e7f5 100644 (file)
@@ -547,7 +547,7 @@ class tx_felogin_pi1 extends tslib_pibase {
                                                                'felogin_redirectPid!="" AND uid IN (' . implode(',', $groupData['uid']) . ')'
                                                        );
                                                        if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_row($res))   {
-                                                               $redirect_url[] = $this->pi_getPageLink($row[0], array(), TRUE); // take the first group with a redirect page
+                                                               $redirect_url[] = $this->pi_getPageLink($row[0]); // take the first group with a redirect page
                                                        }
                                                break;
                                                case 'userLogin':
@@ -557,12 +557,12 @@ class tx_felogin_pi1 extends tslib_pibase {
                                                                $GLOBALS['TSFE']->fe_user->userid_column . '=' . $GLOBALS['TSFE']->fe_user->user['uid'] . ' AND felogin_redirectPid!=""'
                                                        );
                                                        if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_row($res))   {
-                                                               $redirect_url[] = $this->pi_getPageLink($row[0], array(), TRUE);
+                                                               $redirect_url[] = $this->pi_getPageLink($row[0]);
                                                        }
                                                break;
                                                case 'login':
                                                        if ($this->conf['redirectPageLogin']) {
-                                                               $redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogin']), array(), TRUE);
+                                                               $redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogin']));
                                                        }
                                                break;
                                                case 'getpost':
@@ -606,7 +606,7 @@ class tx_felogin_pi1 extends tslib_pibase {
                                        switch ($redirMethod) {
                                                case 'loginError':
                                                        if ($this->conf['redirectPageLoginError']) {
-                                                               $redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLoginError']), array(), TRUE);
+                                                               $redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLoginError']));
                                                        }
                                                break;
                                        }
@@ -620,7 +620,7 @@ class tx_felogin_pi1 extends tslib_pibase {
 
                                } elseif (($this->logintype == '') && ($redirMethod == 'logout') && $this->conf['redirectPageLogout'] && $GLOBALS['TSFE']->loginUser) {
                                                // if logout and page not accessible
-                                       $redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogout']), array(), TRUE);
+                                       $redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogout']));
 
                                } elseif ($this->logintype === 'logout') { // after logout
 
@@ -637,7 +637,7 @@ class tx_felogin_pi1 extends tslib_pibase {
                                        switch ($redirMethod) {
                                                case 'logout':
                                                        if ($this->conf['redirectPageLogout']) {
-                                                               $redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogout']), array(), TRUE);
+                                                               $redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogout']));
                                                        }
                                                break;
                                        }