Fixes bug during package update
authorMatthias Schmidt <gravatronics@live.com>
Thu, 1 Dec 2011 16:50:20 +0000 (17:50 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 1 Dec 2011 16:50:20 +0000 (17:50 +0100)
The id of the updated package is still read like when no routes were used.

wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php

index 70c64570abdf60297b955acc6695e054e4afb5af..91cf4344f5170a92739e2989974582a1134f631c 100755 (executable)
@@ -78,8 +78,8 @@ class PackageStartInstallForm extends ACPForm {
        public function readParameters() {
                parent::readParameters();
                
-               if (isset($_REQUEST['packageID'])) {
-                       $this->packageID = intval($_REQUEST['packageID']);
+               if (isset($_REQUEST['id'])) {
+                       $this->packageID = intval($_REQUEST['id']);
                        if ($this->packageID != 0) {
                                try {
                                        $this->package = new Package($this->packageID);