_loadPage: function(event, data) {
// update active page
for (var $i = 0, $size = this._pluginLists.length; $i < $size; $i++) {
- this._pluginLists[$i].wcfPages('overridePage', data.activePage);
+ this._pluginLists[$i].wcfPages('switchPage', data.activePage);
}
// load page from cache if applicable
WCF.TabMenu.init();
WCF.Language.add('wcf.acp.package.view.button.uninstall.sure', 'wcf.acp.package.view.button.uninstall.sure');
- new WCF.ACP.PackageUninstallation($('.package .uninstallButton'));
+ new WCF.ACP.Package.Uninstallation($('.package .uninstallButton'));
{if $pluginsCount > 1}
WCF.Icon.addObject({
'wcf.icon.previous': '{@RELATIVE_WCF_DIR}icon/previous1.svg',
'wcf.icon.previous.disabled': '{@RELATIVE_WCF_DIR}icon/previous1D.svg'
});
- new WCF.ACP.Package.List({@($pluginsCount / 1)|ceil});
+ new WCF.ACP.Package.List({@($pluginsCount / 20)|ceil});
{/if}
});
//]]>
// read applications
$this->applicationList = new PackageList();
$this->applicationList->getConditionBuilder()->add("package.standalone = ?", array(1));
-
- // DEBUG ONLY - remove comment to exclude WCF from display
- //$this->applicationList->getConditionBuilder()->add("package.packageID <> ?", array(1));
- // DEBUG ONLY
-
+ $this->applicationList->getConditionBuilder()->add("package.packageID <> ?", array(1));
$this->applicationList->sqlLimit = 0;
$this->applicationList->readObjects();
$this->pluginCount = $this->pluginList->countObjects();
// read plugins
- $this->pluginList->sqlLimit = 1;
+ $this->pluginList->sqlLimit = 20;
$this->pluginList->readObjects();
}
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\exception\SystemException;
use wcf\system\io\File;
+use wcf\system\package\PackageDependencyHandler;
use wcf\system\WCF;
use wcf\util\FileUtil;
use wcf\util\StringUtil;
*/
public static function getPluginList() {
$pluginList = new PackageList();
- //$pluginList->getConditionBuilder()->add("package.packageID IN (?)", array(PackageDependencyHandler::getDependencies()));
+ $pluginList->getConditionBuilder()->add("package.packageID IN (?)", array(PackageDependencyHandler::getDependencies()));
$pluginList->getConditionBuilder()->add("package.standalone = ?", array(0));
return $pluginList;
*/
public function getPluginList() {
$pluginList = Package::getPluginList();
- $pluginList->sqlLimit = 1;
- $pluginList->sqlOffset = (($this->parameters['activePage'] - 1) * 1);
+ $pluginList->sqlLimit = 20;
+ $pluginList->sqlOffset = (($this->parameters['activePage'] - 1) * 20);
$pluginList->readObjects();
WCF::getTPL()->assign(array(