namespace wcf\acp\page;
use wcf\page\SortablePage;
use wcf\system\WCF;
-use wcf\data\package\update\server\PackageUpdateServer;
/**
* Shows a list of all installed packages.
*/
public $objectListClassName = 'wcf\data\package\PackageList';
- /**
- * list of WCF major releases covered by existing store update servers
- * @var array<string>
- */
- public $wcfMajorReleases = array();
-
/**
* @see \wcf\page\IPage::readParameters()
*/
if (isset($_GET['packageID'])) $this->packageID = intval($_GET['packageID']);
}
- /**
- * @see \wcf\page\IPage::readData()
- */
- public function readData() {
- parent::readData();
-
- $updateServers = PackageUpdateServer::getActiveUpdateServers();
- foreach ($updateServers as $updateServer) {
- if (preg_match('~^https?://store.woltlab.com/(maelstrom|typhoon)/$~', $updateServer->serverURL, $matches)) {
- $this->wcfMajorReleases[] = $matches[1];
- }
- }
- }
-
/**
* @see \wcf\page\IPage::assignVariables()
*/
parent::assignVariables();
WCF::getTPL()->assign(array(
- 'packageID' => $this->packageID,
- 'wcfMajorReleases' => $this->wcfMajorReleases
+ 'packageID' => $this->packageID
));
}
<?php
namespace wcf\acp\page;
+use wcf\data\package\update\server\PackageUpdateServerList;
+use wcf\data\package\Package;
+use wcf\data\package\PackageCache;
use wcf\page\AbstractPage;
use wcf\system\exception\IllegalLinkException;
use wcf\system\WCF;
-use wcf\system\database\util\PreparedStatementConditionBuilder;
-use wcf\data\package\PackageCache;
-use wcf\data\package\Package;
-use wcf\data\package\update\server\PackageUpdateServerList;
/**
* Shows a list of purchased plugin store items.
<?php
namespace wcf\data\package;
use wcf\data\AbstractDatabaseObjectAction;
-use wcf\system\exception\HTTPUnauthorizedException;
-use wcf\system\exception\UserInputException;
+use wcf\system\exception\SystemException;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\HTTPRequest;
use wcf\util\JSON;
-use wcf\system\exception\SystemException;
-use wcf\system\request\LinkHandler;
/**
* Executes package-related actions.