Index: typo3/template.php =================================================================== --- typo3/template.php (revision 5695) +++ typo3/template.php (working copy) @@ -2039,7 +2039,7 @@ // 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