<?php
namespace wcf\acp\page;
-use wcf\system\menu\acp\ACPMenu;
use wcf\data\package\Package;
use wcf\page\AbstractPage;
+use wcf\system\menu\acp\ACPMenu;
+use wcf\system\exception\IllegalLinkException;
use wcf\system\WCF;
/**
parent::readParameters();
if (isset($_REQUEST['packageID'])) $this->packageID = intval($_REQUEST['packageID']);
+ $this->package = new Package($this->packageID);
+ if (!$this->package->packageID) {
+ throw new IllegalLinkException();
+ }
}
/**
parent::readData();
// get package data
- try {
- $this->package = new Package($this->packageID);
- $this->requiredPackages = $this->package->getRequiredPackages();
- $this->dependentPackages = $this->package->getDependentPackages();
- $this->dependencies = $this->package->getDependencies();
- }
- catch (SystemException $e) {
- throw new IllegalLinkException();
- }
+ $this->requiredPackages = $this->package->getRequiredPackages();
+ $this->dependentPackages = $this->package->getDependentPackages();
+ $this->dependencies = $this->package->getDependencies();
}
/**