[TYPO3-core] FYI #12499: Call to deprecated method t3lib_userAuth::redirect()

Martin Kutschker masi-no at spam-typo3.org
Fri Nov 6 23:38:48 CET 2009


Rupert Germann schrieb:
> Hi,
> 
> the following patch was committed to trunk (follow-up to 12420)
> rev 6363
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12499
> 
> Branches: Trunk
> 
> Problem:
> function start() in class t3lib_userAuth calls the deprecated method
> t3lib_userAuth::redirect()
> this floods the deprecation log with entries.
> 
> Solution:
> remove the call to this function
> it is marked as deprecated since TYPO3 3.6

But this changes the behaviour *now*, not in 4.5

Solution call $this->obsoleteRedirect() in line 292 and change the method as such:

	function redirect() {
		t3lib_div::logDeprecatedFunction();

		$this->obsoleteRedirect();
	}

	protected obsoleteRedirect() {
		if (!$this->userid && $this->auth_url)	{	 // if no userid AND an include-document for login is given
			include ($this->auth_include);
			exit;
		}
	}

Masi


More information about the TYPO3-team-core mailing list