From: Matthias Schmidt Date: Sun, 10 Feb 2013 11:56:20 +0000 (+0100) Subject: Fixes property access because of lazy initialization X-Git-Tag: 2.0.0_Beta_1~493^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=164c26414c6f9bdacd15949f2359bb04ba91c789;p=GitHub%2FWoltLab%2FWCF.git Fixes property access because of lazy initialization --- 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') )); }