13740-show-clickmenu-nosysdomain.diff

Administrator Admin, 2010-03-04 09:23

Download (882 Bytes)

View differences:

t3lib/class.t3lib_befunc.php (Arbeitskopie)
2663 2663
	 * @param integer $pageId the page ID to use, must be > 0
2664 2664
	 * @param array $rootLine the root line structure to use
2665 2665
	 *
2666
	 * @return string the full domain including the protocol http:// or https://
2666
	 * @return string the full domain including the protocol http:// or https://, but without the trailing '/'
2667 2667
	 *
2668 2668
	 * @author Michael Klapper <michael.klapper@aoemedia.de>
2669 2669
	 */
2670 2670
	public static function getViewDomain($pageId, $rootLine = null) {
2671
		$domain = t3lib_div::getIndpEnv('TYPO3_SITE_URL');
2671
		$domain = rtrim(t3lib_div::getIndpEnv('TYPO3_SITE_URL'), '/');
2672 2672

  
2673 2673
		if (!is_array($rootLine)) {
2674 2674
			$rootLine = t3lib_BEfunc::BEgetRootLine($pageId);