From: Matthias Schmidt Date: Fri, 27 Sep 2013 13:59:17 +0000 (+0200) Subject: Adds import info for missing packageID parameter X-Git-Tag: 2.0.0_Beta_10~15^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77467f0bbfe9133e4cdf1208a5824f48a42944d3;p=GitHub%2FWoltLab%2FWCF.git Adds import info for missing packageID parameter --- 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 73aa4952ab..7c6ae2d923 100644 --- a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php @@ -123,6 +123,16 @@ class ImportCLICommand implements ICLICommand { return; } + if (PACKAGE_ID == 1) { + CLIWCF::getReader()->println(StringUtil::stripHTML(WCF::getLanguage()->get('wcf.acp.dataImport.cli.info.wcf'))); + + $answer = CLIWCF::getReader()->readLine('> '); + if (mb_strtolower($answer) != 'y') { + CLIWCF::getReader()->setHistoryEnabled(true); + return; + } + } + // step 1) previous import $sql = "SELECT COUNT(*) FROM wcf".WCF_N."_import_mapping"; diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index b610ce243e..1a94f9f88f 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -169,6 +169,7 @@ + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 1f9accbc8a..82f1108173 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -168,6 +168,7 @@ Examples for medium ID detection: +