[TYPO3-core] RFC: Bug 3990: disableTabInTextarea not respected

Ingmar Schlecht ingmar at typo3.org
Tue Aug 22 09:25:17 CEST 2006


Hi Stucki,

next time you can commit such patches without waiting for two +1s.

Anyway: +1, based on reading the patch.

cheers
Ingmar


Michael Stucki schrieb:
> This is a SVN patch request.
> 
> Problem:
> Apparently the $BE_USER property "disableTabInTextarea" is not working.
> 
> Solution:
> Change $BE_USER to $GLOBALS['BE_USER']
> 
> Branches:
> TYPO3_4-0 / Trunk
> 
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=3990
> 
> - michael
> 
> 
> ------------------------------------------------------------------------
> 
> Index: typo3/template.php
> ===================================================================
> --- typo3/template.php	(Revision 1669)
> +++ typo3/template.php	(Arbeitskopie)
> @@ -642,7 +642,7 @@
>  		}
>  
>  		$tabJScode = '';
> -		if (!$BE_USER->uc['disableTabInTextarea'])	{
> +		if (!$GLOBALS['BE_USER']->uc['disableTabInTextarea'])	{
>  				// This loads the tabulator-in-textarea feature. It automatically modifies every textarea which is found.
>  			$tabJScode = '<script src="'.$this->backPath.'tab.js" type="text/javascript"></script>';
>  		}



More information about the TYPO3-team-core mailing list