Disables history during import
authorMatthias Schmidt <gravatronics@live.com>
Fri, 27 Sep 2013 13:58:33 +0000 (15:58 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 27 Sep 2013 13:58:33 +0000 (15:58 +0200)
wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php

index 7066b9d716355051df75190291a34023c7845143..73aa4952abd0e8684a8139cd96212747b958c6f2 100644 (file)
@@ -113,6 +113,8 @@ class ImportCLICommand implements ICLICommand {
         * @see wcf\system\cli\command\ICLICommand::execute()
         */
        public function execute(array $parameters) {
+               CLIWCF::getReader()->setHistoryEnabled(false);
+               
                $this->exporters = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.exporter');
                $this->importers = array_keys(ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.importer'));
                
@@ -142,6 +144,7 @@ class ImportCLICommand implements ICLICommand {
                // step 3) selected data
                $this->readSelectedData();
                if ($this->quitImport) {
+                       CLIWCF::getReader()->setHistoryEnabled(true);
                        return;
                }
                
@@ -181,6 +184,8 @@ class ImportCLICommand implements ICLICommand {
                }
                
                CLIWCF::getReader()->println(WCF::getLanguage()->get('wcf.acp.dataImport.completed'));
+               
+               CLIWCF::getReader()->setHistoryEnabled(true);
        }
        
        /**