Index: typo3/mod/tools/em/class.em_index.php =================================================================== --- typo3/mod/tools/em/class.em_index.php (revision 1891) +++ typo3/mod/tools/em/class.em_index.php (working copy) @@ -3832,9 +3832,9 @@ $extInfo['EM_CONF']['_md5_values_when_last_written'] = serialize($this->serverExtensionMD5Array($extKey,$extInfo)); $emConfFileContent = $this->construct_ext_emconf_file($extKey,$extInfo['EM_CONF']); + $absPath = $this->getExtPath($extKey,$extInfo['type']); + $emConfFileName = $absPath.'ext_emconf.php'; if($emConfFileContent) { - $absPath = $this->getExtPath($extKey,$extInfo['type']); - $emConfFileName = $absPath.'ext_emconf.php'; if(@is_file($emConfFileName)) { if(t3lib_div::writeFile($emConfFileName,$emConfFileContent) === true) { @@ -3876,7 +3876,7 @@ $vDat = $this->renderVersion($EM_CONF['version']); $EM_CONF['version']=$vDat['version']; - return 'arrayToCode($EM_CONF, 0).'; ?>'; + return preg_replace('/\r/', '', $code); } /**