Fixed bug #10357: Add gp as an alternative to gpvar in TS getText for a more consiste...
authorIngo Renner <ingo.renner@typo3.org>
Fri, 6 Feb 2009 10:18:48 +0000 (10:18 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Fri, 6 Feb 2009 10:18:48 +0000 (10:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4959 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index d17b53b..9ff1648 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-02-06  Ingo Renner  <ingo@typo3.org>
+
+       * Fixed bug #10357: Add gp as an alternative to gpvar in TS getText for a more consistent naming scheme
+
 2009-02-05  Francois Suter  <francois@typo3.org>
 
        * Fixed bug #10346: l10n_display option abusively hides field for "All" languages when set to defaultAsReadonly
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);