From 15795e804bed9081a59aac93132ba3bb156b3bc8 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 27 Sep 2013 15:58:33 +0200 Subject: [PATCH] Disables history during import --- .../files/lib/system/cli/command/ImportCLICommand.class.php | 5 +++++ 1 file changed, 5 insertions(+) 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); } /** -- 2.20.1