Better fix for bug #5032: [LocalLang: 0?]DEF is sometimes displayed for content elements
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 26 Feb 2007 13:39:06 +0000 (13:39 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 26 Feb 2007 13:39:06 +0000 (13:39 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2153 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms.php
t3lib/class.t3lib_transl8tools.php

index 63370d6..b388b08 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-02-20  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Better fix for bug #5032: [LocalLang: 0?]DEF is sometimes displayed for content elements
+
 2007-02-25  Oliver Hader  <oh@inpublica.de>
 
        * Fixed bug #5055: SQL problem with reviewstate in EM (thanks to Franz-Xaver Koch)
index 10a1b81..a17be0c 100755 (executable)
@@ -5347,7 +5347,7 @@ class t3lib_TCEforms      {
                        }
                }
 
-               return ($this->cachedLanguageFlag[$mainKey][$sys_language_uid]['flagIcon'] ? '<img src="'.$this->cachedLanguageFlag[$mainKey][$sys_language_uid]['flagIcon'].'" class="absmiddle" alt="" />' : ($this->cachedLanguageFlag[$mainKey][$sys_language_uid]['title'] ? '['.$this->cachedLanguageFlag[$mainKey][$sys_language_uid]['title'].']' : '[LangCode: '.$sys_language_uid.' ?]')).'&nbsp;';
+               return ($this->cachedLanguageFlag[$mainKey][$sys_language_uid]['flagIcon'] ? '<img src="'.$this->cachedLanguageFlag[$mainKey][$sys_language_uid]['flagIcon'].'" class="absmiddle" alt="" />' : ($this->cachedLanguageFlag[$mainKey][$sys_language_uid]['title'] ? '['.$this->cachedLanguageFlag[$mainKey][$sys_language_uid]['title'].']' : '')).'&nbsp;';
        }
 
        /**
index af3deb3..27ab49f 100755 (executable)
@@ -73,7 +73,7 @@ class t3lib_transl8tools      {
                        'uid' => 0,
                        'title' => strlen ($modSharedTSconfig['properties']['defaultLanguageLabel']) ? $modSharedTSconfig['properties']['defaultLanguageLabel'].' ('.$LANG->getLL('defaultLanguage').')' : $LANG->getLL('defaultLanguage'),
                        'ISOcode' => 'DEF',
-                       'flagIcon' => strlen($modSharedTSconfig['properties']['defaultLanguageFlag']) && @is_file($flagAbsPath.$modSharedTSconfig['properties']['defaultLanguageFlag']) ? $flagIconPath.$modSharedTSconfig['properties']['defaultLanguageFlag'] : $flagIconPath.'unknown.gif',
+                       'flagIcon' => strlen($modSharedTSconfig['properties']['defaultLanguageFlag']) && @is_file($flagAbsPath.$modSharedTSconfig['properties']['defaultLanguageFlag']) ? $flagIconPath.$modSharedTSconfig['properties']['defaultLanguageFlag'] : null,
                );
 
                        // Set "All" language: