}
}
- // if package is plugin to com.woltlab.wcf it must not have any other requirement
- $requirements = $this->getArchive()->getRequirements();
-
// insert requirements and dependencies
$requirements = $this->getArchive()->getAllExistingRequirements();
if (!empty($requirements)) {
(packageID, requirement)
VALUES (?, ?)";
$statement = WCF::getDB()->prepareStatement($sql);
-
+
foreach ($requirements as $identifier => $possibleRequirements) {
if (count($possibleRequirements) == 1) {
$requirement = array_shift($possibleRequirements);
else {
$requirement = $possibleRequirements[$this->selectedRequirements[$identifier]];
}
-
+
$statement->execute(array($this->queue->packageID, $requirement['packageID']));
}
}
-
}
else {
// create package entry
}
}
- // if package is plugin to com.woltlab.wcf it must not have any other requirement
- $requirements = $this->getArchive()->getRequirements();
-
// insert requirements and dependencies
$requirements = $this->getArchive()->getAllExistingRequirements();
if (!empty($requirements)) {