[TYPO3-dev] Bug in typo3/index.php ?!

Steffen Ritter steffen.ritter at typo3.org
Fri Nov 25 15:19:54 CET 2011


Am 25.11.2011 14:56, schrieb Chris Zepernick:
> Hey guys,
>
> I got a little question ... is there a reasonable reason for this code
> in the typo3/index.php ->getJScode():
>
> if
> (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginScriptHook']))
> {
> foreach
> ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginScriptHook']
> as $function) {
> $params = array();
> $JSCode = t3lib_div::callUserFunction(
> $function,
> $params,
> $this);
> if ($JSCode) {
> break;
> }
> }
> }
>
> Why implement a hook that will only serve the first implemted hook and
> ignore the rest ? That makes to my mind no sense at all, ... if one
> wants to add more js to index.php, he or she should be able to.
>
> Please correct me if I am wrong.
>
> cheers
>
> Chris
Did you do a blame on the line?
Check the revision, so that we know what context it is...
I could imagine it's done for RSAauth...

regards

Steffen

-- 
Steffen Ritter
Release Manager TYPO3 4.7

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the TYPO3-dev mailing list