Fix version variable in INVALID_REQUIRED_PACKAGE_VERSION_NUMBER error message
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 21 Apr 2023 14:04:05 +0000 (16:04 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 21 Apr 2023 14:04:48 +0000 (16:04 +0200)
Fixes #5443

wcfsetup/install/files/lib/system/package/PackageArchive.class.php

index 6299112b823dbc1d94e51ead99c25e4297cd1a2c..e413de4ceac2229cccf797036490d1b0d73987da 100644 (file)
@@ -321,7 +321,7 @@ class PackageArchive
                 throw new PackageValidationException(
                     PackageValidationException::INVALID_REQUIRED_PACKAGE_VERSION_NUMBER,
                     [
-                        'version' => $data['version'] ?? '',
+                        'version' => $data['minversion'] ?? '',
                         'packageName' => $element->nodeValue,
                     ]
                 );