Version mismatch used wrong variables
authorAlexander Ebert <ebert@woltlab.com>
Wed, 7 Mar 2018 12:43:10 +0000 (13:43 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 7 Mar 2018 12:43:10 +0000 (13:43 +0100)
wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php

index c1fcda44b0ed510e752753b47c3ac0f801e238b3..a796e1667bf2bbd504315639a2c140314432c209 100644 (file)
@@ -192,8 +192,8 @@ class PackageValidationArchive implements \RecursiveIterator {
                // delivered package does not provide the minimum required version
                if (Package::compareVersion($requiredVersion, $this->archive->getPackageInfo('version'), '>')) {
                        throw new PackageValidationException(PackageValidationException::INSUFFICIENT_VERSION, array(
-                               'packageName' => $package->packageName,
-                               'packageVersion' => $package->packageVersion,
+                               'packageName' => $this->archive->getPackageInfo('name'),
+                               'packageVersion' => $requiredVersion,
                                'deliveredPackageVersion' => $this->archive->getPackageInfo('version')
                        ));
                }