From: Tim Düsterhus Date: Sat, 8 Jun 2013 13:58:30 +0000 (+0300) Subject: Add WCF to application filter in TemplateListPage X-Git-Tag: 2.0.0_Beta_4~99 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=176eb5e6408faaf3228c71045e380af3022487a7;p=GitHub%2FWoltLab%2FWCF.git Add WCF to application filter in TemplateListPage also: sort the applications by name. --- diff --git a/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php b/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php index 484fa6e4b1..a526659585 100644 --- a/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php @@ -115,10 +115,14 @@ class TemplateListPage extends SortablePage { // get applications $applications = ApplicationHandler::getInstance()->getApplications(); + $applications[] = ApplicationHandler::getInstance()->getWCF(); foreach ($applications as $application) { $package = PackageCache::getInstance()->getPackage($application->packageID); $this->availableApplications[ApplicationHandler::getInstance()->getAbbreviation($package->packageID)] = $package; } + uasort($this->availableApplications, function ($a, $b) { + return $a->getName() > $b->getName(); + }); } /**