From: Tim Düsterhus Date: Fri, 3 Jul 2020 09:20:12 +0000 (+0200) Subject: Remove --packageID option on cli.php X-Git-Tag: 5.3.0_Alpha_1~165 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=476915c53fada2827fd381c974973371cc05c832;p=GitHub%2FWoltLab%2FWCF.git Remove --packageID option on cli.php Resolves #3425 --- diff --git a/wcfsetup/install/files/cli.php b/wcfsetup/install/files/cli.php index b367801145..806f136d72 100644 --- a/wcfsetup/install/files/cli.php +++ b/wcfsetup/install/files/cli.php @@ -8,8 +8,9 @@ * @package WoltLabSuite\Core */ if (PHP_SAPI !== 'cli') exit; -// define the wcf-root-dir -define('WCF_DIR', dirname(__FILE__).'/'); + +// include config +require_once(__DIR__.'/app.config.inc.php'); // initiate wcf core require_once(WCF_DIR.'lib/system/WCF.class.php'); diff --git a/wcfsetup/install/files/lib/system/CLIWCF.class.php b/wcfsetup/install/files/lib/system/CLIWCF.class.php index 15353cfae9..9c354faa5a 100644 --- a/wcfsetup/install/files/lib/system/CLIWCF.class.php +++ b/wcfsetup/install/files/lib/system/CLIWCF.class.php @@ -62,13 +62,6 @@ class CLIWCF extends WCF { $zendLoader = new ZendLoader([ZendLoader::AUTOREGISTER_ZF => true]); $zendLoader->register(); - $argv = new ArgvParser([ - 'packageID=i' => '' - ]); - $argv->setOption(ArgvParser::CONFIG_FREEFORM_FLAGS, true); - $argv->parse(); - define('PACKAGE_ID', $argv->packageID ?: 1); - // disable benchmark define('ENABLE_BENCHMARK', 0);