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

Chris Zepernick chris at swift-lizard.com
Fri Nov 25 14:56:38 CET 2011


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



More information about the TYPO3-dev mailing list