From: Cyperghost Date: Fri, 2 Feb 2024 12:31:59 +0000 (+0100) Subject: Add a check that `variables_order` has `ENV` active X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c2bf8cce59d00b139e2d44efa4e8930d989c77e;p=GitHub%2FWoltLab%2FWCF.git Add a check that `variables_order` has `ENV` active --- 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 ecbda8bb96..5dc819777b 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -3436,6 +3436,7 @@ Erlaubte Dateiendungen: {', '|implode:$attachmentHandler->getFormattedAllowedExt + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index a1a976a470..0a63506079 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -3361,6 +3361,7 @@ Allowed extensions: {', '|implode:$attachmentHandler->getFormattedAllowedExtensi +