Skip to content

Commit

Permalink
Remove the PACKAGE_VERSION constant
Browse files Browse the repository at this point in the history
The value is more reliably retrieved by fetching the appropriate Package DBO.
  • Loading branch information
TimWolla committed Sep 19, 2022
1 parent f787c6e commit ffa7464
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion wcfsetup/install/files/lib/data/package/Package.class.php
Expand Up @@ -459,7 +459,6 @@ public static function writeConfigFile($packageID)
$content .= "// {$package->package} (packageID {$packageID})\n";
$content .= "if (!defined('{$prefix}_DIR')) define('{$prefix}_DIR', __DIR__.'/');\n";
$content .= "if (!defined('PACKAGE_ID')) define('PACKAGE_ID', {$packageID});\n";
$content .= "if (!defined('PACKAGE_VERSION')) define('PACKAGE_VERSION', '{$package->packageVersion}');\n";

if ($packageID != 1) {
$content .= "\n";
Expand Down

0 comments on commit ffa7464

Please sign in to comment.