From fd83fca8bc9136e0958b2cb16972832431583e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michaela=20Br=C3=BCckner?= Date: Mon, 2 Dec 2024 12:40:57 +0100 Subject: re #4754 --- app/controllers/course/ilias_interface.php | 20 +++++++++++--- app/views/admin/ilias_interface/edit_content.php | 30 ++++++++++----------- .../ilias_interface/edit_interface_settings.php | 2 +- app/views/course/ilias_interface/index.php | 12 +++++++-- app/views/my_ilias_accounts/index.php | 12 +++++---- doc/de/studip-installation-guide-de-401.pdf | Bin 83856 -> 0 bytes doc/de/verbindung_studip-ilias3.pdf | Bin 128710 -> 0 bytes lib/ilias_interface/ConnectedIlias.php | 2 +- lib/modules/IliasInterfaceModule.php | 12 +++++++-- 9 files changed, 60 insertions(+), 30 deletions(-) delete mode 100644 doc/de/studip-installation-guide-de-401.pdf delete mode 100644 doc/de/verbindung_studip-ilias3.pdf diff --git a/app/controllers/course/ilias_interface.php b/app/controllers/course/ilias_interface.php index 4f45397..ede6ced 100644 --- a/app/controllers/course/ilias_interface.php +++ b/app/controllers/course/ilias_interface.php @@ -90,9 +90,17 @@ class Course_IliasInterfaceController extends AuthenticatedController if (($this->module_count == 0) && (!$this->courses)) { if (Context::isInstitute()) { - PageLayout::postInfo(_('Momentan sind dieser Einrichtung keine Lernobjekte zugeordnet.')); + if ($this->ilias_interface_config['create_objects']) { + PageLayout::postInfo(_('Momentan sind dieser Einrichtung keine Lernobjekte zugeordnet.')); + } else { + PageLayout::postInfo(_('Momentan sind dieser Einrichtung kein ILIAS-Kurs zugeordnet.')); + } } else { - PageLayout::postInfo(_('Momentan sind dieser Veranstaltung keine Lernobjekte zugeordnet.')); + if ($this->ilias_interface_config['create_objects']) { + PageLayout::postInfo(_('Momentan sind dieser Veranstaltung keine Lernobjekte zugeordnet.')); + } else { + PageLayout::postInfo(_('Momentan ist dieser Veranstaltung kein ILIAS-Kurs zugeordnet.')); + } } } @@ -106,7 +114,7 @@ class Course_IliasInterfaceController extends AuthenticatedController Icon::create('add') )->asDialog(); } - if ($this->author_permission) { + if ($this->author_permission && $ilias_interface_config['create_objects']) { $widget->addLink( _('Meine Lernobjekte'), $this->url_for('course/ilias_interface/add_object/my_modules'), @@ -242,7 +250,11 @@ class Course_IliasInterfaceController extends AuthenticatedController */ public function add_object_action($mode = 'search', $index = '') { - PageLayout::setTitle(_('Lernobjekt hinzufügen')); + if ($this->ilias_interface_config['create_objects']) { + PageLayout::setTitle(_('Lernobjekt hinzufügen')); + } else { + PageLayout::setTitle(_('Neuen ILIAS-Kurs anlegen')); + } if (!$this->edit_permission) { throw new AccessDeniedException(); diff --git a/app/views/admin/ilias_interface/edit_content.php b/app/views/admin/ilias_interface/edit_content.php index cc0e595..5e36357 100644 --- a/app/views/admin/ilias_interface/edit_content.php +++ b/app/views/admin/ilias_interface/edit_content.php @@ -18,8 +18,6 @@ - - - + = 50400) && (ConnectedIlias::getIntVersion($ilias_config['version']) < 60000)) : ?> - - + +