From 9c679eb62bc1318f5c9df330335a69b24d230a29 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 4 Jan 2012 18:42:39 +0100 Subject: [PATCH] Redirect to detailed package list within WCF ACP Closes #361 --- .../files/lib/acp/page/PackageListPage.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php b/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php index 8fa560c8e1..e148d0fa5a 100755 --- a/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php @@ -4,7 +4,9 @@ use wcf\data\package\Package; use wcf\data\package\PackageList; use wcf\page\AbstractPage; use wcf\system\menu\acp\ACPMenu; +use wcf\system\request\RouteHandler; use wcf\system\WCF; +use wcf\util\HeaderUtil; /** * Shows a list of installed packages and plugins. @@ -76,6 +78,16 @@ class PackageListPage extends AbstractPage { * @see wcf\page\IPage::show() */ public function show() { + // use detailed view if accessing WCF ACP directly + if (PACKAGE_ID == 1) { + // base tag is determined on runtime + $host = RouteHandler::getHost(); + $path = RouteHandler::getPath(); + + HeaderUtil::redirect($host . $path . 'index.php/PackageListDetailed/' . SID_ARG_1ST, false); + exit; + } + // enable menu item ACPMenu::getInstance()->setActiveMenuItem('wcf.acp.menu.link.package.list'); -- 2.20.1