Bug #22273 » 22273.patch

Tobias Hochgürtel, 2011-07-29 21:26

View differences:

t3lib/class.t3lib_pagerenderer.php 2011-02-26 00:21:11.000000000 +0100
1085 1085
	 * @param boolean $forceOnTop
1086 1086
	 * @return void
1087 1087
	 */
1088
	public function addCssFile($file, $rel = 'stylesheet', $media = 'all', $title = '', $compress = TRUE, $forceOnTop = FALSE, $allWrap = '', $debug = false) {
1088
	public function addCssFile($file, $rel = 'stylesheet', $media = 'all', $title = '', $compress = TRUE, $forceOnTop = FALSE, $allWrap = '') {
1089 1089
		if (!isset($this->cssFiles[$file])) {
1090 1090
			$this->cssFiles[$file] = array(
1091 1091
				'rel' => $rel,
......
1096 1096
				'allWrap' => $allWrap
1097 1097
			);
1098 1098
		}
1099
		
1100
		if($debug){
1101
            I::info($this->cssFiles, "\$this->pageRenderer->cssFiles");
1102
		}
1103
		
1104 1099
	}
1105 1100

  
1106 1101
	/*CSS Inline Blocks */
......
1371 1366
	/*                                                   */
1372 1367
	/*                                                   */
1373 1368
	/*****************************************************/
1374
    
1375
    /**
1376
     * USER_INT, Objects generated Header-Data (JS(head/footer)|CSS(head/footer)) are not Updated / Added to the Content OutPut.
1377
     * - BEGIN
1378
     * @see http://forge.typo3.org/issues/22273
1379
     * @author Tobias Hochguertel, <tobias.hochguertel@online.de>
1380
     */
1381
    
1382
    /**
1383
     * NOTE:
1384
     * Following Constants are defined...
1385
     ---------------------------------------
1386
        const PART_COMPLETE = 0;
1387
        const PART_HEADER = 1;
1388
        const PART_FOOTER = 2;
1389
     *
1390
     */    
1391
        
1392
    /**
1393
     * renderCssFiles()
1394
     * 
1395
     * @param   String  $cssFiles="", An Already Setuped/Rendered $cssFiles Variable.
1396
     * @return  String
1397
     */
1398
    protected function renderCssFiles($cssFiles = "")
1399
    {
1400
        if (count($this->cssFiles))
1401
        {
1402
            foreach ($this->cssFiles as $file => $properties)
1403
            {
1404
                $file = t3lib_div::resolveBackPath($file);
1405
                $file = t3lib_div::createVersionNumberedFilename($file);
1406
                $tag = '<link rel="' . htmlspecialchars($properties['rel']) . '" type="text/css" href="' .
1407
                       htmlspecialchars($file) . '" media="' . htmlspecialchars($properties['media']) . '"' .
1408
                       ($properties['title'] ? ' title="' . htmlspecialchars($properties['title']) . '"' : '') .
1409
                       $endingSlash . '>';
1410
                if ($properties['allWrap'] && strpos($properties['allWrap'], '|') !== FALSE)
1411
                {
1412
                    $tag = str_replace('|', $tag, $properties['allWrap']);
1413
                }
1414
                if ($properties['forceOnTop'])
1415
                {
1416
                    $cssFiles = $tag . LF . $cssFiles;
1417
                }
1418
                else
1419
                {
1420
                    $cssFiles .= LF . $tag;
1421
                }
1422
            }
1423
        }
1424
        return $cssFiles;
1425
    }
1426
    
1427
    /**
1428
     * renderCssInline()
1429
     * 
1430
     * @param   String  $cssInline="", An Already Setuped/Rendered $cssInline Variable.
1431
     * @return  String
1432
     */
1433
    protected function renderCssInline($cssInline = "")
1434
    {
1435
        if (count($this->cssInline))
1436
        {
1437
            foreach ($this->cssInline as $name => $properties)
1438
            {
1439
                if ($properties['forceOnTop']) {
1440
                    $cssInline = '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF . $cssInline;
1441
                }
1442
                else
1443
                {
1444
                    $cssInline .= '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF;
1445
                }
1446
            }
1447
            $cssInline = $this->inlineCssWrap[0] . $cssInline . $this->inlineCssWrap[1];
1448
        }
1449
        return $cssInline;
1450
    }
1451
    
1452
    /**
1453
     * renderJsFooterLibs()
1454
     * 
1455
     * @param   String  $jsFooterLibs="", An Already Setuped/Rendered $jsFooterLibs Variable.
1456
     * @param   String  $jsLibs="", An Already Setuped/Rendered $jsLibs Variable.
1457
     * @return  Array   Keys: [ 'jsFooterLibs', 'jsLibs' ]. 
1458
     */
1459
    protected function renderJsFooterLibs($jsFooterLibs = "", $jsLibs = "")
1460
    {
1461
        if (count($this->jsLibs)) {
1462
            foreach ($this->jsLibs as $name => $properties) {
1463
                $properties['file'] = t3lib_div::resolveBackPath($properties['file']);
1464
                $properties['file'] = t3lib_div::createVersionNumberedFilename($properties['file']);
1465
                $tag = '<script src="' . htmlspecialchars($properties['file']) . '" type="' . htmlspecialchars($properties['type']) . '"></script>';
1466
                if ($properties['allWrap'] && strpos($properties['allWrap'], '|') !== FALSE) {
1467
                    $tag = str_replace('|', $tag, $properties['allWrap']);
1468
                }
1469
                if ($properties['forceOnTop']) {
1470
                    if ($properties['section'] === self::PART_HEADER) {
1471
                        $jsLibs = $tag . LF . $jsLibs;
1472
                    } else {
1473
                        $jsFooterLibs = $tag . LF . $jsFooterLibs;
1474
                    }
1475
                } else {
1476
                    if ($properties['section'] === self::PART_HEADER) {
1477
                        $jsLibs .= LF . $tag;
1478
                    } else {
1479
                        $jsFooterLibs .= LF . $tag;
1480
                    }
1481
                }
1482
            }
1483
        }
1484
        if ($this->moveJsFromHeaderToFooter) {
1485
            $jsFooterLibs = $jsLibs . LF . $jsFooterLibs;
1486
            $jsLibs = '';
1487
        }
1488
        return array(
1489
            'jsFooterLibs' => $jsFooterLibs,
1490
            'jsLibs' => $jsLibs
1491
        );
1492
    }
1493
    
1494
    /**
1495
     * renderJsFiles()
1496
     * 
1497
     * @param   String  $jsFiles="", An Already Setuped/Rendered $jsFiles Variable.
1498
     * @param   String  $jsFooterFiles="", An Already Setuped/Rendered $jsFooterFiles Variable.
1499
     * @return  Array   Keys: [ 'jsFiles', 'jsFooterFiles' ]. 
1500
     */
1501
    protected function renderJsFiles($jsFiles = "", $jsFooterFiles = "")
1502
    {
1503
        if (count($this->jsFiles)) {
1504
            foreach ($this->jsFiles as $file => $properties) {
1505
                $file = t3lib_div::resolveBackPath($file);
1506
                $file = t3lib_div::createVersionNumberedFilename($file);
1507
                $tag = '<script src="' . htmlspecialchars($file) . '" type="' . htmlspecialchars($properties['type']) . '"></script>';
1508
                if ($properties['allWrap'] && strpos($properties['allWrap'], '|') !== FALSE) {
1509
                    $tag = str_replace('|', $tag, $properties['allWrap']);
1510
                }
1511
                if ($properties['forceOnTop']) {
1512
                    if ($properties['section'] === self::PART_HEADER) {
1513
                        $jsFiles = $tag . LF . $jsFiles;
1514
                    } else {
1515
                        $jsFooterFiles = $tag . LF . $jsFooterFiles;
1516
                    }
1517
                } else {
1518
                    if ($properties['section'] === self::PART_HEADER) {
1519
                        $jsFiles .= LF . $tag;
1520
                    } else {
1521
                        $jsFooterFiles .= LF . $tag;
1522
                    }
1523
                }
1524
            }
1525
        }
1526
        if ($this->moveJsFromHeaderToFooter) {
1527
            $jsFooterFiles = $jsFiles . LF . $jsFooterFiles;
1528
            $jsFiles = '';
1529
        }
1530
        return array(
1531
            'jsFiles' => $jsFiles,
1532
            'jsFooterFiles' => $jsFooterFiles
1533
        );
1534
    }
1535
    
1536
    /**
1537
     * renderJsInline()
1538
     * 
1539
     * @param   String  $jsInline="", An Already Setuped/Rendered $jsInline Variable.
1540
     * @param   String  $jsFooterInline="", An Already Setuped/Rendered $jsFooterInline Variable.
1541
     * @return  Array   Keys: [ 'jsInline', 'jsFooterInline' ]. 
1542
     */
1543
    protected function renderJsInline($jsInline = "", $jsFooterInline = "" )
1544
    {
1545
        
1546
        if (count($this->jsInline)) {
1547
            foreach ($this->jsInline as $name => $properties) {
1548
                if ($properties['forceOnTop']) {
1549
                    if ($properties['section'] === self::PART_HEADER) {
1550
                        $jsInline = '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF . $jsInline;
1551
                    } else {
1552
                        $jsFooterInline = '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF . $jsFooterInline;
1553
                    }
1554
                } else {
1555
                    if ($properties['section'] === self::PART_HEADER) {
1556
                        $jsInline .= '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF;
1557
                    } else {
1558
                        $jsFooterInline .= '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF;
1559
                    }
1560
                }
1561
            }
1562
        }
1563
        if ($jsInline) {
1564
            $jsInline = $this->inlineJavascriptWrap[0] . $jsInline . $this->inlineJavascriptWrap[1];
1565
        }
1566

  
1567
        if ($jsFooterInline) {
1568
            $jsFooterInline = $this->inlineJavascriptWrap[0] . $jsFooterInline . $this->inlineJavascriptWrap[1];
1569
        }
1570
        if ($this->moveJsFromHeaderToFooter) {
1571
            $jsFooterInline = $jsInline . LF . $jsFooterInline;
1572
            $jsInline = '';
1573
        }
1574
        return array(
1575
            'jsInline' => $jsInline,
1576
            'jsFooterInline' => $jsFooterInline
1577
        );
1578
    }
1579
    
1580
    /**
1581
     * INTpageRenderer_HeaderFooterIncludes,
1582
     * 
1583
     * 
1584
     * 
1585
     * @return Array(
1586
            'jsLibs'               => &$jsLibs,
1587
            'jsFiles'              => &$jsFiles,
1588
            'jsFooterFiles'        => &$jsFooterFiles,
1589
            'jsInline'             => &$jsInline,
1590
            'jsFooterInline'       => &$jsFooterInline,
1591
            'jsFooterLibs'         => &$jsFooterLibs,
1592
        );
1593
     */
1594
    public function INTpageRenderer_HeaderFooterIncludes()
1595
    {
1596
        $jsFiles = '';
1597
        $cssFiles = '';
1598
        $cssInline = '';
1599
        $jsInline = '';
1600
        $jsFooterInline = '';
1601
        $jsFooterLibs = '';
1602
        $jsFooterFiles = '';
1603

  
1604
            // preRenderHook for possible manuipulation
1605
        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'])) {
1606
            $params = array(
1607
                'jsLibs' => &$this->jsLibs,
1608
                'jsFooterLibs'   => &$this->jsFooterLibs,
1609
                'jsFiles' => &$this->jsFiles,
1610
                'jsFooterFiles' => &$this->jsFooterFiles,
1611
                'cssFiles' => &$this->cssFiles,
1612
                'headerData' => &$this->headerData,
1613
                'footerData' => &$this->footerData,
1614
                'jsInline' => &$this->jsInline,
1615
                'jsFooterInline' => &$this->jsFooterInline,
1616
                'cssInline' => &$this->cssInline,
1617
            );
1618
            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'] as $hook) {
1619
                t3lib_div::callUserFunction($hook, $params, $this);
1620
            }
1621
        }
1622

  
1623
        $jsLibs = $this->renderJsLibraries();
1624

  
1625
        if ($this->concatenateFiles) {
1626
                // do the file concatenation
1627
            $this->doConcatenate();
1628
        }
1629
        if ($this->compressCss || $this->compressJavascript) {
1630
                // do the file compression
1631
            $this->doCompress();
1632
        }
1633
        
1634
        $cssFiles = $this->renderCssFiles($cssFiles);
1635
        $cssInline = $this->renderCssInline($cssInline);
1636
        extract($this->renderJsFooterLibs($jsFooterLibs, $jsLibs), EXTR_REFS);
1637
        extract($this->renderJsFiles($jsFiles, $jsFooterFiles), EXTR_REFS);
1638
        extract($this->renderJsInline($jsInline, $jsFooterInline), EXTR_REFS);
1639
        
1640
            // postRenderHook for possible manipulation
1641
        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-postProcess'])) {
1642
            $params = array (
1643
                'jsLibs'               => &$jsLibs,
1644
                'jsFiles'              => &$jsFiles,
1645
                'jsFooterFiles'        => &$jsFooterFiles,
1646
                'cssFiles'             => &$cssFiles,
1647
                'headerData'           => &$this->headerData,
1648
                'footerData'           => &$this->footerData,
1649
                'jsInline'             => &$jsInline,
1650
                'cssInline'            => &$cssInline,
1651
                'xmlPrologAndDocType'  => &$this->xmlPrologAndDocType,
1652
                'htmlTag'              => &$this->htmlTag,
1653
                'headTag'              => &$this->headTag,
1654
                'charSet'              => &$this->charSet,
1655
                'metaCharsetTag'       => &$this->metaCharsetTag,
1656
                'shortcutTag'          => &$this->shortcutTag,
1657
                'inlineComments'       => &$this->inlineComments,
1658
                'baseUrl'              => &$this->baseUrl,
1659
                'baseUrlTag'           => &$this->baseUrlTag,
1660
                'favIcon'              => &$this->favIcon,
1661
                'iconMimeType'         => &$this->iconMimeType,
1662
                'titleTag'             => &$this->titleTag,
1663
                'title'                => &$this->title,
1664
                'metaTags'             => &$metaTags,
1665
                'jsFooterInline'       => &$jsFooterInline,
1666
                'jsFooterLibs'         => &$jsFooterLibs,
1667
                'bodyContent'          => &$this->bodyContent,
1668
            );
1669
            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-postProcess'] as $hook) {
1670
                t3lib_div::callUserFunction($hook, $params, $this);
1671
            }
1672
        }
1673
        
1674
        return Array(
1675
            'jsLibs'               => &$jsLibs,
1676
            'jsFiles'              => &$jsFiles,
1677
            'jsFooterFiles'        => &$jsFooterFiles,
1678
            'jsInline'             => &$jsInline,
1679
            'jsFooterInline'       => &$jsFooterInline,
1680
            'jsFooterLibs'         => &$jsFooterLibs,
1681
        );
1682
    }
1683
        
1684
    /**
1685
     * USER_INT, Objects generated Header-Data (JS(head/footer)|CSS(head/footer)) are not Updated / Added to the Content OutPut.
1686
     * - END
1687
     * @see http://forge.typo3.org/issues/22273
1688
     * @author Tobias Hochguertel, <tobias.hochguertel@online.de>
1689
     */
1690
    
1369

  
1691 1370
	/**
1692 1371
	 * render the section (Header or Footer)
1693 1372
	 *
......
1747 1426
			$this->shortcutTag = str_replace(' />', '>', $this->shortcutTag);
1748 1427
			$endingSlash = '';
1749 1428
		}
1750
        
1751
        $cssFiles = $this->renderCssFiles($cssFiles);
1752
        /*
1429

  
1753 1430
		if (count($this->cssFiles)) {
1754 1431
			foreach ($this->cssFiles as $file => $properties) {
1755 1432
				$file = t3lib_div::resolveBackPath($file);
......
1767 1444
					$cssFiles .= LF . $tag;
1768 1445
				}
1769 1446
			}
1770
		}*/
1447
		}
1448

  
1449
		if (count($this->cssInline)) {
1450
			foreach ($this->cssInline as $name => $properties) {
1451
				if ($properties['forceOnTop']) {
1452
					$cssInline = '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF . $cssInline;
1453
				} else {
1454
					$cssInline .= '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF;
1455
				}
1456
			}
1457
			$cssInline = $this->inlineCssWrap[0] . $cssInline . $this->inlineCssWrap[1];
1458
		}
1771 1459

  
1772
// 		if (count($this->cssInline)) {
1773
// 			foreach ($this->cssInline as $name => $properties) {
1774
// 				if ($properties['forceOnTop']) {
1775
// 					$cssInline = '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF . $cssInline;
1776
// 				} else {
1777
// 					$cssInline .= '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF;
1778
// 				}
1779
// 			}
1780
// 			$cssInline = $this->inlineCssWrap[0] . $cssInline . $this->inlineCssWrap[1];
1781
// 		}
1782
		$cssInline = $this->renderCssInline($cssInline);
1783
		
1784
        /*
1785 1460
		if (count($this->jsLibs)) {
1786 1461
			foreach ($this->jsLibs as $name => $properties) {
1787 1462
				$properties['file'] = t3lib_div::resolveBackPath($properties['file']);
......
1805 1480
				}
1806 1481
			}
1807 1482
		}
1808
		*/
1809
		
1810
		extract($this->renderJsFooterLibs($jsFooterLibs, $jsLibs), EXTR_REFS);
1811
        /*
1483

  
1812 1484
		if (count($this->jsFiles)) {
1813 1485
			foreach ($this->jsFiles as $file => $properties) {
1814 1486
				$file = t3lib_div::resolveBackPath($file);
......
1832 1504
				}
1833 1505
			}
1834 1506
		}
1835
		*/
1836
		extract($this->renderJsFiles($jsFiles, $jsFooterFiles), EXTR_REFS);
1837 1507

  
1838
// 		if (count($this->jsInline)) {
1839
// 			foreach ($this->jsInline as $name => $properties) {
1840
// 				if ($properties['forceOnTop']) {
1841
// 					if ($properties['section'] === self::PART_HEADER) {
1842
// 						$jsInline = '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF . $jsInline;
1843
// 					} else {
1844
// 						$jsFooterInline = '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF . $jsFooterInline;
1845
// 					}
1846
// 				} else {
1847
// 					if ($properties['section'] === self::PART_HEADER) {
1848
// 						$jsInline .= '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF;
1849
// 					} else {
1850
// 						$jsFooterInline .= '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF;
1851
// 					}
1852
// 				}
1853
// 			}
1854
// 		}
1855
		
1856
		extract($this->renderJsInline($jsInline, $jsFooterInline), EXTR_REFS);
1508
		if (count($this->jsInline)) {
1509
			foreach ($this->jsInline as $name => $properties) {
1510
				if ($properties['forceOnTop']) {
1511
					if ($properties['section'] === self::PART_HEADER) {
1512
						$jsInline = '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF . $jsInline;
1513
					} else {
1514
						$jsFooterInline = '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF . $jsFooterInline;
1515
					}
1516
				} else {
1517
					if ($properties['section'] === self::PART_HEADER) {
1518
						$jsInline .= '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF;
1519
					} else {
1520
						$jsFooterInline .= '/*' . htmlspecialchars($name) . '*/' . LF . $properties['code'] . LF;
1521
					}
1522
				}
1523
			}
1524
		}
1525

  
1857 1526

  
1858
        /*
1859 1527
		if ($jsInline) {
1860 1528
			$jsInline = $this->inlineJavascriptWrap[0] . $jsInline . $this->inlineJavascriptWrap[1];
1861 1529
		}
......
1863 1531
		if ($jsFooterInline) {
1864 1532
			$jsFooterInline = $this->inlineJavascriptWrap[0] . $jsFooterInline . $this->inlineJavascriptWrap[1];
1865 1533
		}
1866
		*/
1867 1534

  
1868 1535

  
1869 1536
			// get template
......
1877 1544
			$templatePart = explode('###BODY###', $template);
1878 1545
			$template = $templatePart[$part - 1];
1879 1546
		}
1880
        
1881
        /*
1547

  
1882 1548
		if ($this->moveJsFromHeaderToFooter) {
1883 1549
			$jsFooterLibs = $jsLibs . LF . $jsFooterLibs;
1884 1550
			$jsLibs = '';
......
1887 1553
			$jsFooterInline = $jsInline . LF . $jsFooterInline;
1888 1554
			$jsInline = '';
1889 1555
		}
1890
		*/
1891 1556

  
1892 1557
			// postRenderHook for possible manipulation
1893 1558
		if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-postProcess'])) {
typo3/sysext/cms/tslib/class.tslib_fe.php 2011-02-26 00:21:11.000000000 +0100
25 25
*  This copyright notice MUST APPEAR in all copies of the script!
26 26
***************************************************************/
27 27

  
28
require_once(t3lib_extMgm::extPath('hfp_magazine') . 'Classes/Core/include_firebug.php');
29
require_once(t3lib_extMgm::extPath('hfp_magazine') . 'Classes/Core/class.tx_hfpmagazine_insight_controller.php');
30
require_once(t3lib_extMgm::extPath('hfp_magazine') . 'Classes/Core/class.tx_hfpmagazine_log_controller.php');
31

  
32 28
/**
33 29
 * Class for the built TypoScript based Front End
34 30
 *
......
3184 3180
		$this->additionalJavaScript = $this->config['INTincScript_ext']['additionalJavaScript'];
3185 3181
		$this->additionalCSS = $this->config['INTincScript_ext']['additionalCSS'];
3186 3182
		$this->JSCode = $this->additionalHeaderData['JSCode'];
3187
		$this->JSImgCode = $this->additionalHeaderData['JSImgCode']; 
3183
		$this->JSImgCode = $this->additionalHeaderData['JSImgCode'];
3188 3184
		$this->divSection='';
3189
		
3185

  
3190 3186
		do {
3191 3187
			$INTiS_config = $this->config['INTincScript'];
3192
			
3193 3188
			$this->INTincScript_includeLibs($INTiS_config);
3194 3189
			$this->INTincScript_process($INTiS_config);
3195 3190
				// Check if there were new items added to INTincScript during the previous execution:
3196 3191
			$INTiS_config = array_diff_assoc($this->config['INTincScript'], $INTiS_config);
3197 3192
			$reprocess = (count($INTiS_config) ? true : false);
3198 3193
		} while($reprocess);
3199
        
3200
        /**
3201
         * USER_INT, Objects generated Header-Data (JS(head/footer)|CSS(head/footer)) are not Updated / Added to the Content OutPut.
3202
         * - BEGIN
3203
         * @see http://forge.typo3.org/issues/22273
3204
         * @author Tobias Hochguertel, <tobias.hochguertel@online.de>
3205
         */
3206
        $INTpageRenderer_HeaderFooterIncludes = $this->pageRenderer->INTpageRenderer_HeaderFooterIncludes();
3207
        $this->additionalHeaderData[] = $INTpageRenderer_HeaderFooterIncludes['jsFiles'];
3208
        /**
3209
         * USER_INT, Objects generated Header-Data (JS(head/footer)|CSS(head/footer)) are not Updated / Added to the Content OutPut.
3210
         * - END
3211
         * @see http://forge.typo3.org/issues/22273
3212
         * @author Tobias Hochguertel, <tobias.hochguertel@online.de>
3213
         */
3214
		
3194

  
3215 3195
		$GLOBALS['TT']->push('Substitute header section');
3216 3196
		$this->INTincScript_loadJSCode();
3217 3197
		$this->content = str_replace('<!--HD_'.$this->config['INTincScript_ext']['divKey'].'-->', $this->convOutputCharset(implode(LF,$this->additionalHeaderData),'HD'), $this->content);
......
3219 3199
		$this->setAbsRefPrefix();
3220 3200
		$GLOBALS['TT']->pull();
3221 3201
	}
3222
	 
3223

  
3224
	
3225 3202

  
3226 3203
	/**
3227 3204
	 * Include libraries for uncached objects.
......
3253 3230
		$GLOBALS['TT']->setTSlogMessage('Parts: '.count($INTiS_splitC));
3254 3231
		$GLOBALS['TT']->pull();
3255 3232

  
3256
		foreach($INTiS_splitC as $INTiS_c => $INTiS_cPart)	{	
3233
		foreach($INTiS_splitC as $INTiS_c => $INTiS_cPart)	{
3257 3234
			if (substr($INTiS_cPart,32,3)=='-->')	{	// If the split had a comment-end after 32 characters it's probably a split-string
3258 3235
				$INTiS_key = 'INT_SCRIPT.'.substr($INTiS_cPart,0,32);
3259 3236
				$GLOBALS['TT']->push('Include '.$INTiS_config[$INTiS_key]['file'],'');
(2-2/3)