Project

General

Profile

Bug #22392 ยป 14021_v1.diff

Administrator Admin, 2010-04-07 12:17

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
if ((string)$key!='') {
$type = strtolower(trim($parts[0]));
switch($type) {
case 'gp':
case 'gpvar':
list($firstKey, $rest) = explode('|', $key, 2);
if (strlen(trim($firstKey))) {
$retVal = t3lib_div::_GP(trim($firstKey));
// Look for deeper levels:
if (strlen(trim($rest))) {
$retVal = is_array($retVal) ? $this->getGlobal($rest, $retVal) : '';
}
// Check that output is not an array:
if (is_array($retVal)) $retVal = '';
}
if ($type == 'gpvar') {
t3lib_div::deprecationLog('Using gpvar in TypoScript getText is deprecated since TYPO3 4.3 - Use gp instead of gpvar.');
}
t3lib_div::deprecationLog('Using gpvar in TypoScript getText is deprecated since TYPO3 4.3 - Use gp instead of gpvar.');
// Fall Through
case 'gp':
$retVal = $this->getGlobal($key, t3lib_div::_GET());
break;
case 'tsfe':
$retVal = $this->getGlobal ('TSFE|'.$key);
$retVal = $this->getGlobal ('TSFE|' . $key);
break;
case 'getenv':
$retVal = getenv($key);
    (1-1/1)