Bug #15006 » 0001525_multiple_includeLib.diff
typo3_src-4.2.8/t3lib/class.t3lib_extmgm.php 2009-09-15 11:46:49.000000000 +0200 | ||
---|---|---|
* @return void
|
||
*/
|
||
public static function addPItoST43($key, $classFile = '', $prefix = '', $type = 'list_type', $cached = 0) {
|
||
global $TYPO3_LOADED_EXT;
|
||
global $TYPO3_LOADED_EXT, $TYPO3_CONF_VARS;
|
||
$classFile = $classFile ? $classFile : 'pi/class.tx_'.str_replace('_', '', $key).$prefix.'.php';
|
||
$cN = t3lib_extMgm::getCN($key);
|
||
... | ... | |
$addLine = 'lib.stdheader.10.'.$key.$prefix.' = < plugin.'.$cN.$prefix;
|
||
break;
|
||
case 'includeLib':
|
||
$addLine = 'page.1000 = < plugin.'.$cN.$prefix;
|
||
$pageObjKey = 1000;
|
||
while(!$addLine) {
|
||
if(!eregi("page.".$pageObjKey, $TYPO3_CONF_VARS['FE']['defaultTypoScript_setup.']['cssstyledcontent/static/'])) {
|
||
$addLine = 'page.'.$pageObjKey.' = < plugin.'.$cN.$prefix;
|
||
}
|
||
$pageObjKey++;
|
||
}
|
||
break;
|
||
default:
|
||
$addLine = '';
|