Retrieved current step of the Install Tool
authorXavier Perseguers <typo3@perseguers.ch>
Fri, 30 Apr 2010 10:13:22 +0000 (10:13 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Fri, 30 Apr 2010 10:13:22 +0000 (10:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk@32766 735d13b6-9817-0410-8766-e36946ffe9aa

typo3/sysext/dbal/class.tx_dbal_autoloader.php

index 3524b45..dfca20a 100644 (file)
@@ -41,11 +41,18 @@ class tx_dbal_autoloader {
        /**
         * Activates DBAL if it is supported.
         *
+        * @param integer $step
         * @return void
         */
-       public function execute() {
-               if (!t3lib_extMgm::isLoaded('dbal') && $this->isDbalSupported()) {
-                       $this->activateDbal();
+       public function execute($step) {
+               t3lib_div::debug($step, 'current step');
+               switch ($step) {
+                       case 1:
+                               if (!t3lib_extMgm::isLoaded('dbal') && $this->isDbalSupported()) {
+                                       t3lib_div::debug('activated dbal');
+                                       $this->activateDbal();
+                               }
+                               break;
                }
        }
 
@@ -107,8 +114,9 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dbal/cl
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dbal/class.tx_dbal_autoloader.php']);
 }
 
+$installStep = $this->step;
 
        // Make instance:
 $SOBE = t3lib_div::makeInstance('tx_dbal_autoloader');
-$SOBE->execute();
+$SOBE->execute($installStep);
 ?>
\ No newline at end of file