From: Alexander Ebert Date: Wed, 4 Jan 2012 17:42:39 +0000 (+0100) Subject: Redirect to detailed package list within WCF ACP X-Git-Tag: 2.0.0_Beta_1~1453 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c679eb62bc1318f5c9df330335a69b24d230a29;p=GitHub%2FWoltLab%2FWCF.git Redirect to detailed package list within WCF ACP Closes #361 --- 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');