Fixed Bug #11493: Ext Js with debug setting now also deliver debug versions of adapters
authorSteffen Kamper <info@sk-typo3.de>
Tue, 7 Jul 2009 13:01:47 +0000 (13:01 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Tue, 7 Jul 2009 13:01:47 +0000 (13:01 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5697 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/template.php

index 8c8dc23..20fba42 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-07-07  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed Bug #11493: Ext Js with debug setting now also deliver debug versions of adapters
        * Update #11492: Update Ext Js to 3.0 final 
 
 2009-07-06  Steffen Kamper  <info@sk-typo3.de>
index daa2143..8d381cd 100644 (file)
@@ -2039,7 +2039,7 @@ $str.=$this->docBodyTagBegin().
                        // include extJS
                if ($this->addExtJS) {
                                // use the base adapter all the time
-                       $libs[] = 'contrib/extjs/adapter/' . $this->extJSadapter;
+                       $libs[] = 'contrib/extjs/adapter/' . ($this->enableExtJsDebug ? str_replace('.js', '-debug.js', $this->extJSadapter) : $this->extJSadapter);
                        $libs[] = 'contrib/extjs/ext-all' . ($this->enableExtJsDebug ? '-debug' : '') . '.js';
 
                                // add extJS localization