<?php
namespace wcf\acp\action;
use wcf\action\AbstractDialogAction;
-use wcf\data\application\Application;
use wcf\data\package\installation\queue\PackageInstallationQueue;
use wcf\system\cache\CacheHandler;
use wcf\system\exception\IllegalLinkException;
WHERE packageID = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array($packageID));
- $application = new Application(null, $statement->fetchArray());
+ $application = $statement->fetchObject('wcf\data\application\Application');
// build redirect location
$location = $application->getPageURL() . 'acp/index.php/PackageList/' . SID_ARG_1ST;
<?php
namespace wcf\acp\action;
use wcf\action\AbstractDialogAction;
-use wcf\data\application\Application;
use wcf\data\package\installation\queue\PackageInstallationQueue;
use wcf\data\package\installation\queue\PackageInstallationQueueEditor;
use wcf\data\package\Package;
WHERE packageID = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array($packageID));
- $application = new Application(null, $statement->fetchArray());
+ $application = $statement->fetchObject('wcf\data\application\Application');
// build redirect location
$location = $application->getPageURL() . 'acp/index.php/PackageList/' . SID_ARG_1ST;