Fixed bug #10357: Add gp as an alternative to gpvar in TS getText for a more consiste...
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tslib / class.tslib_content.php
index d91a05a..01cd7e1 100755 (executable)
@@ -5012,6 +5012,7 @@ class tslib_cObj {
                        $key = trim($parts[1]);
                        if ((string)$key!='')   {
                                switch(strtolower(trim($parts[0])))     {
+                                       case 'gp':
                                        case 'gpvar':
                                                list($firstKey, $rest) = explode('|', $key, 2);
                                                if (strlen(trim($firstKey)))    {
@@ -5023,6 +5024,7 @@ class tslib_cObj {
                                                                // Check that output is not an array:
                                                        if (is_array($retVal))  $retVal = '';
                                                }
+                                       t3lib_div::deprecationLog('Using gpvar in TypoScript getText is deprecated since TYPO3 4.3 - Use gp instead of gpvar.');
                                        break;
                                        case 'tsfe':
                                                $retVal = $this->getGlobal ('TSFE|'.$key);