diff --git a/components/ILIAS/Container/classes/class.ilContainerGUI.php b/components/ILIAS/Container/classes/class.ilContainerGUI.php index 414b9bf2d73a..dacd8e29a7d4 100755 --- a/components/ILIAS/Container/classes/class.ilContainerGUI.php +++ b/components/ILIAS/Container/classes/class.ilContainerGUI.php @@ -601,19 +601,19 @@ public function showAdministrationPanel(): void $num_files = $this->tree->getChildsByType($ref_id, "file"); $num_folders = $this->tree->getChildsByType($ref_id, "fold"); if (count($num_files) > 0 || count($num_folders) > 0) { - // #11843 - $GLOBALS['tpl']->setPageFormAction($this->ctrl->getFormAction($this)); - $toolbar = new ilToolbarGUI(); $this->ctrl->setParameter($this, "type", ""); $this->ctrl->setParameter($this, "item_ref_id", ""); + // #11843 + $main_tpl->setPageFormAction($this->ctrl->getFormAction($this)); + $toolbar->addFormButton( $this->lng->txt('download_selected_items'), 'download' ); - $GLOBALS['tpl']->addAdminPanelToolbar( + $main_tpl->addAdminPanelToolbar( $toolbar, $this->gotItems(), $this->gotItems()