From: Matthias Schmidt Date: Fri, 27 Sep 2013 13:58:33 +0000 (+0200) Subject: Disables history during import X-Git-Tag: 2.0.0_Beta_10~15^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=15795e804bed9081a59aac93132ba3bb156b3bc8;p=GitHub%2FWoltLab%2FWCF.git Disables history during import --- diff --git a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php index 7066b9d716..73aa4952ab 100644 --- a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php @@ -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); } /**