diff --git a/app/controllers/course/files.php b/app/controllers/course/files.php index 19f3e70c171bdb344136b92c748085911cfab0e9..7ce2962a8f9d7ab10d2180674723f11429522b4f 100644 --- a/app/controllers/course/files.php +++ b/app/controllers/course/files.php @@ -97,7 +97,7 @@ class Course_FilesController extends AuthenticatedController $sidebar->addWidget($actions); if ($this->topFolder->isWritable($GLOBALS['user']->id)) { - $uploadArea = new LinksWidget(); + $uploadArea = new SidebarWidget(); $uploadArea->setTitle(_("Dateien hochladen")); $uploadArea->addElement(new WidgetElement( $this->render_template_as_string('files/upload-drag-and-drop')) diff --git a/app/controllers/resources/resource.php b/app/controllers/resources/resource.php index 50f9d4af345da59af8f4dabe661f791c50130e28..d7bd0d24df09cc1f24526af5531f73dbba43af19 100644 --- a/app/controllers/resources/resource.php +++ b/app/controllers/resources/resource.php @@ -1452,7 +1452,7 @@ class Resources_ResourceController extends AuthenticatedController ] ); //Add the file upload widget: - $upload_area = new LinksWidget(); + $upload_area = new SidebarWidget(); $upload_area->setTitle(_('Dateien hinzufügen')); $upload_area->addElement( new WidgetElement( diff --git a/app/views/admin/plugin/index.php b/app/views/admin/plugin/index.php index 9d7190d88de4d86a5c602f2936a7479da862c4f9..d24cfc9001482e7f08edd3f7471b63b92dda1a53 100644 --- a/app/views/admin/plugin/index.php +++ b/app/views/admin/plugin/index.php @@ -158,7 +158,7 @@ use Studip\Button, Studip\LinkButton; $sidebar = Sidebar::Get(); if (Config::get()->PLUGINS_UPLOAD_ENABLE) { - $uploadArea = $sidebar->addWidget(new LinksWidget()); + $uploadArea = $sidebar->addWidget(new SidebarWidget()); $uploadArea->setTitle(_('Plugin als ZIP-Datei hochladen')); $uploadArea->addElement(new WidgetElement( $this->render_partial('admin/plugin/upload-drag-and-drop'))