'wcf.acp.package.update.title': '{lang}wcf.acp.package.update.title{/lang}'
});
- new WCF.ACP.Package.Installation({@$queue->queueID}, undefined, {if $queue->action == 'install'}true, false{else}false, true{/if});
+ new WCF.ACP.Package.Installation({@$queue->queueID}, undefined, {if $queue->action == 'install'}{if $queue->isApplication}false{else}true{/if}, false{else}false, true{/if});
new WCF.ACP.Package.Installation.Cancel({@$queue->queueID});
});
$packageID = ($this->package) ? $this->package->packageID : null;
// insert queue
+ $isApplication = $this->archive->getPackageInfo('isApplication');
$this->queue = PackageInstallationQueueEditor::create(array(
'processNo' => $processNo,
'userID' => WCF::getUser()->userID,
'packageID' => $packageID,
'archive' => (!empty($this->uploadPackage['tmp_name']) ? $this->uploadPackage['name'] : $this->downloadPackage),
'action' => ($this->package != null ? 'update' : 'install'),
- 'confirmInstallation' => 1
+ 'isApplication' => (!$isApplication ? '0' : '1')
));
$this->saved();
throw new UserInputException('objectIDs');
}
- // todo: do confirmInstallation and packageType need validation?
- // see https://github.com/WoltLab/WCF/issues/1329
- // see https://github.com/WoltLab/WCF/issues/1330
-
if ($this->queue->userID != WCF::getUser()->userID) {
throw new PermissionDeniedException();
}
archive VARCHAR(255) NOT NULL DEFAULT '',
action ENUM('install', 'update', 'uninstall') NOT NULL DEFAULT 'install',
done TINYINT(1) NOT NULL DEFAULT 0,
- confirmInstallation TINYINT(1) NOT NULL DEFAULT 0,
- packageType ENUM('default', 'requirement', 'optional') NOT NULL DEFAULT 'default'
+ isApplication TINYINT(1) NOT NULL DEFAULT 0
);
DROP TABLE IF EXISTS wcf1_package_installation_sql_log;