+2010-11-17 Xavier Perseguers <typo3@perseguers.ch>
+
+ * Fixed bug #16444: DBAL installs itself automatically whenever the install tool is called
+
2010-11-14 Xavier Perseguers <typo3@perseguers.ch>
* Set version to 1.2.0beta1
* @return void
*/
public function execute(tx_install $instObj) {
- switch ($instObj->step) {
- case 0:
- if (!t3lib_extMgm::isLoaded('dbal') && $this->isDbalSupported()) {
- $this->activateDbal();
+ if ($instObj->mode = '123') {
+ switch ($instObj->step) {
+ case 0:
+ if (!t3lib_extMgm::isLoaded('dbal') && $this->isDbalSupported()) {
+ $this->activateDbal();
- // Reload page to have Install Tool actually load DBAL
- $redirectUrl = t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');
- t3lib_utility_Http::redirect($redirectUrl);
- }
- break;
- case 1:
- case 2:
- if (!t3lib_extMgm::isLoaded('dbal') && $this->isDbalSupported()) {
- $this->activateDbal();
- }
- break;
- case 3:
- $driver = $instObj->INSTALL['localconf.php']['typo_db_driver'];
- if ($driver === 'mysql') {
- $this->deactivateDbal();
- }
- break;
+ // Reload page to have Install Tool actually load DBAL
+ $redirectUrl = t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');
+ t3lib_utility_Http::redirect($redirectUrl);
+ }
+ break;
+ case 1:
+ case 2:
+ if (!t3lib_extMgm::isLoaded('dbal') && $this->isDbalSupported()) {
+ $this->activateDbal();
+ }
+ break;
+ case 3:
+ $driver = $instObj->INSTALL['localconf.php']['typo_db_driver'];
+ if ($driver === 'mysql') {
+ $this->deactivateDbal();
+ }
+ break;
+ }
}
}