Project

General

Profile

Bug #22561 » tx_dbal_autoloader.diff

Administrator Admin, 2010-05-01 22:06

View differences:

typo3/sysext/dbal/class.tx_dbal_autoloader.php (working copy)
$instObj->allowUpdateLocalConf = 1;
$instObj->updateIdentity = 'TYPO3 Core Update Manager';
// Get lines from localconf file
$lines = $instObj->writeToLocalconf_control();
$instObj->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'EXT\'][\'extList\']', $newExtList);
$instObj->writeToLocalconf_control($lines);
try {
// Get lines from localconf file
$lines = $instObj->writeToLocalconf_control();
$instObj->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'EXT\'][\'extList\']', $newExtList);
$instObj->writeToLocalconf_control($lines);
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = $newExtList;
// Make sure to get cache file for backend, not frontend
$cacheFilePrefix = $GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'];
$GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'] = str_replace('temp_CACHED_FE', 'temp_CACHED', $cacheFilePrefix);
t3lib_extMgm::removeCacheFiles();
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = $newExtList;
// Make sure to get cache file for backend, not frontend
$cacheFilePrefix = $GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'];
$GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'] = str_replace('temp_CACHED_FE', 'temp_CACHED', $cacheFilePrefix);
t3lib_extMgm::removeCacheFiles();
}
catch (Exception $e) {
echo '<p>' . $e->getMessage() . '<p>';
exit;
}
}
}
(1-1/2)