Bug #11249: Abusive deprecation logging in tslib_content::getData()
authorFrancois Suter <francois.suter@typo3.org>
Thu, 16 Jul 2009 19:13:19 +0000 (19:13 +0000)
committerFrancois Suter <francois.suter@typo3.org>
Thu, 16 Jul 2009 19:13:19 +0000 (19:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5720 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 6a41367..852c113 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-16  Francois Suter  <francois@typo3.org>
+
+       * Bug #11249: Abusive deprecation logging in tslib_content::getData()
+
 2009-07-15  Francois Suter  <francois@typo3.org>
 
        * Cleanup #11408: Object Browser uses hardcoded texts (plus some CGL cleanup) (thanks to Christopher Stelmaszyk)
index 72e07ea..9428382 100644 (file)
@@ -5030,7 +5030,8 @@ class tslib_cObj {
                        $parts = explode(':',$secVal,2);
                        $key = trim($parts[1]);
                        if ((string)$key!='')   {
-                               switch(strtolower(trim($parts[0])))     {
+                               $type = strtolower(trim($parts[0]));
+                               switch($type) {
                                        case 'gp':
                                        case 'gpvar':
                                                list($firstKey, $rest) = explode('|', $key, 2);
@@ -5043,7 +5044,9 @@ 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.');
+                                               if ($type == 'gpvar') {
+                                                       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);