Remove obsolete PACKAGE_ID check in ImportCLICommand
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 10 Dec 2020 13:21:03 +0000 (14:21 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 10 Dec 2020 13:21:03 +0000 (14:21 +0100)
wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 6eea807cc0c223fa2ed7b85438f84d9a0190c182..39544679fe9c78283ba0f5e07c48d62fc004f8e5 100644 (file)
@@ -123,17 +123,6 @@ 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 ($answer === null) exit;
-                       if (mb_strtolower($answer) != 'y') {
-                               CLIWCF::getReader()->setHistoryEnabled(true);
-                               return;
-                       }
-               }
-               
                // step 1) previous import
                $sql = "SELECT  COUNT(*)
                        FROM    wcf".WCF_N."_import_mapping";
index c3d365f9177b91511153bf634a7f333d84edb71e..d88a875a714159b63e436160f3363224d0124196 100644 (file)
                <item name="wcf.acp.dataImport.cli.configure.data.error.noSelection"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Du hast{else}Sie haben{/if} keine Daten zum Import ausgewählt. Der Import wird beendet.]]></item>
                <item name="wcf.acp.dataImport.cli.configure.data.error.invalid"><![CDATA[Der ausgewählte Datentyp ist ungültig.]]></item>
                <item name="wcf.acp.dataImport.cli.configure.data.selectAll"><![CDATA[Alle Daten]]></item>
-               <item name="wcf.acp.dataImport.cli.info.wcf"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Du hast{else}Sie haben{/if} keine App beim Skript-Aufruf mittels --packageID={PACKAGE_ID} geladen. Wenn {if LANGUAGE_USE_INFORMAL_VARIANT}du{else}Sie{/if} Daten für eine App importieren {if LANGUAGE_USE_INFORMAL_VARIANT}möchtest{else}möchten{/if}, {if LANGUAGE_USE_INFORMAL_VARIANT}musst du{else}müssen Sie{/if} das Skript mit der ID des entsprechenden Pakets starten. {if LANGUAGE_USE_INFORMAL_VARIANT}Möchtest du{else}Möchten Sie{/if} mit dem Import fortfahren? [YN]]]></item>
                <item name="wcf.acp.dataImport.cli.selection"><![CDATA[Auswahl? [{if $minSelection == $maxSelection}{$minSelection}{else}{$minSelection}-{$maxSelection}{/if}]]]></item>
                <item name="wcf.acp.dataImport.completed"><![CDATA[Import abgeschlossen.]]></item>
                <item name="wcf.acp.dataImport.configure.data"><![CDATA[Daten]]></item>
index b8d3d634abe36dcd614e8721cdea6552d06593fe..c4b3b583f963302ec978baabac0dbc6718fbf900 100644 (file)
                <item name="wcf.acp.dataImport.cli.configure.data.error.noSelection"><![CDATA[You did not specify any data for importing, the import has been aborted.]]></item>
                <item name="wcf.acp.dataImport.cli.configure.data.error.invalid"><![CDATA[The selected data type is invalid.]]></item>
                <item name="wcf.acp.dataImport.cli.configure.data.selectAll"><![CDATA[All data]]></item>
-               <item name="wcf.acp.dataImport.cli.info.wcf"><![CDATA[You did not load any application through --packageID={PACKAGE_ID}. If you wish to import application-specific data, you must call this script along with the desired package ID. Do you wish to continue the import? [YN]]]></item>
                <item name="wcf.acp.dataImport.cli.selection"><![CDATA[Selection? [{if $minSelection == $maxSelection}{$minSelection}{else}{$minSelection}-{$maxSelection}{/if}]]]></item>
                <item name="wcf.acp.dataImport.completed"><![CDATA[Import completed.]]></item>
                <item name="wcf.acp.dataImport.configure.data"><![CDATA[Data]]></item>