From 164c26414c6f9bdacd15949f2359bb04ba91c789 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 10 Feb 2013 12:56:20 +0100 Subject: [PATCH] Fixes property access because of lazy initialization --- .../system/package/PackageInstallationDispatcher.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 76301e5a12..461035b118 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -402,7 +402,7 @@ class PackageInstallationDispatcher { } else if ($infoName == 'packageName') { // fallback to the package identifier for the package name - $defaultValue = $this->archive->getPackageInfo('name'); + $defaultValue = $this->getArchive()->getPackageInfo('name'); } foreach ($languageList as $language) { @@ -753,7 +753,7 @@ class PackageInstallationDispatcher { $packageEditor = new PackageEditor($this->getPackage()); $packageEditor->update(array( 'updateDate' => TIME_NOW, - 'packageVersion' => $this->archive->getPackageInfo('version') + 'packageVersion' => $this->getArchive()->getPackageInfo('version') )); } -- 2.20.1