Fixes property access because of lazy initialization
authorMatthias Schmidt <gravatronics@live.com>
Sun, 10 Feb 2013 11:56:20 +0000 (12:56 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 10 Feb 2013 11:56:20 +0000 (12:56 +0100)
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php

index 76301e5a12e51b6af2228a13fc72c8b883cc5e34..461035b118e9971c62117fe3d100af032c294268 100644 (file)
@@ -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')
                        ));
                }