From: Tim Düsterhus Date: Fri, 23 May 2014 22:31:53 +0000 (+0200) Subject: Use indented select list in TemplateAddForm X-Git-Tag: 2.1.0_Alpha_1~732^2~2^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2675df8b440b62b2bd8784356d19c2644043d8e;p=GitHub%2FWoltLab%2FWCF.git Use indented select list in TemplateAddForm --- diff --git a/wcfsetup/install/files/acp/templates/templateAdd.tpl b/wcfsetup/install/files/acp/templates/templateAdd.tpl index ff1e78e995..506b541405 100644 --- a/wcfsetup/install/files/acp/templates/templateAdd.tpl +++ b/wcfsetup/install/files/acp/templates/templateAdd.tpl @@ -31,9 +31,7 @@
diff --git a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php index ba2178ad00..b134da106a 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php @@ -3,7 +3,6 @@ namespace wcf\acp\form; use wcf\data\package\Package; use wcf\data\package\PackageCache; use wcf\data\template\group\TemplateGroup; -use wcf\data\template\group\TemplateGroupList; use wcf\data\template\Template; use wcf\data\template\TemplateAction; use wcf\form\AbstractForm; @@ -218,10 +217,7 @@ class TemplateAddForm extends AbstractForm { public function readData() { parent::readData(); - $templateGroupList = new TemplateGroupList(); - $templateGroupList->sqlOrderBy = "templateGroupName"; - $templateGroupList->readObjects(); - $this->availableTemplateGroups = $templateGroupList->getObjects(); + $this->availableTemplateGroups = TemplateGroup::getSelectList(); if (!count($_POST) && $this->copiedTemplate !== null) { $this->tplName = $this->copiedTemplate->templateName;