From 279a1a97d27a3381a04cabbac0135b0223b95038 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Fri, 2 Feb 2024 13:31:59 +0100 Subject: [PATCH] Add a check that `variables_order` has `ENV` active --- .../files/lib/system/cli/command/WorkerCLICommand.class.php | 6 ++++++ wcfsetup/install/lang/de.xml | 1 + wcfsetup/install/lang/en.xml | 1 + 3 files changed, 8 insertions(+) diff --git a/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php index e170b1d6f6..630a6831f6 100644 --- a/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php @@ -137,6 +137,12 @@ class WorkerCLICommand implements ICLICommand return; } + if (!\str_contains(\ini_get('variables_order'), 'E')) { + CLIWCF::getReader()->println(CLIWCF::getLanguage()->get('wcf.cli.worker.threads.variables_order')); + + return; + } + $this->spawnController($worker, $threads); return; diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index c734ded871..8eac78f3b1 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -3439,6 +3439,7 @@ Erlaubte Dateiendungen: {', '|implode:$attachmentHandler->getFormattedAllowedExt + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index cf36b4ddd9..b8615481ad 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -3364,6 +3364,7 @@ Allowed extensions: {', '|implode:$attachmentHandler->getFormattedAllowedExtensi + -- 2.20.1