Project

General

Profile

Bug #30892 » t3lib_befunc.diff

Diff-patch - Jaume Prat, 2011-11-21 22:54

View differences:

class.t3lib_befunc-fix.php 2011-11-21 22:49:41.000000000 +0100
}
// checks alternate domains
if (count($rootLine) > 0) {
$urlParts = parse_url($domain);
if (self::getDomainStartPage($urlParts['host'], $urlParts['path'])) {
$protocol = t3lib_div::getIndpEnv('TYPO3_SSL') ? 'https://' : 'http://';
$domain = $protocol . self::firstDomainRecord($rootLine);
$protocol = t3lib_div::getIndpEnv('TYPO3_SSL') ? 'https://' : 'http://';
// checks alternate domains
if (count($rootLine) > 0) {
$urlParts = parse_url($domain);
if (!self::getDomainStartPage($urlParts['host'], $urlParts['path'])) {
$domain = self::firstDomainRecord($rootLine);
}
else {
$dRecord = self::getDomainStartPage($urlParts['host'], $urlParts['path']);
if (isset($dRecord['domainName']))
$domain = $dRecord['domainName'];
}
}
return $domain;
return $protocol . $domain;
}
/**
(2-2/2)