diff --git a/app/controllers/profile.php b/app/controllers/profile.php index da5414e2dfa505880f0f719d13911bef13931c23..8592d01aa92ec7243f80f5f561ed37bda463aa18 100644 --- a/app/controllers/profile.php +++ b/app/controllers/profile.php @@ -27,7 +27,7 @@ class ProfileController extends AuthenticatedController Navigation::activateItem('/profile/index'); URLHelper::addLinkParam('username', Request::username('username')); PageLayout::setHelpKeyword('Basis.Homepage'); - SkipLinks::addIndex(_('Benutzerprofil'), 'user_profile', 100); + SkipLinks::addIndex(_('Benutzerprofil'), 'layout_content', 100); $this->user = User::findCurrent(); // current logged in user $this->perm = $GLOBALS['perm']; // perms of current logged in user diff --git a/db/migrations/1.326_courseware_integration.php b/db/migrations/1.326_courseware_integration.php index 281a2b46513fb5afbf4ea9fd4864dfd75b832683..2b161cdf14f8878fb41b626fda64e72ab5f83b29 100755 --- a/db/migrations/1.326_courseware_integration.php +++ b/db/migrations/1.326_courseware_integration.php @@ -152,7 +152,7 @@ class CoursewareIntegration extends \Migration ':description' => 'Mit dieser Konfigurationseinstellung wird für eine Courseware festgelegt, welche Rechtestufe Inhalte editieren dürfen.', ':range' => 'range', ':type' => 'string', - ':value' => 'dozent' + ':value' => 'tutor' ]); $statement->execute([ ':name' => 'COURSEWARE_LAST_ELEMENT', diff --git a/db/migrations/5.1.4_fix_my_courses_group_config.php b/db/migrations/5.1.4_fix_my_courses_group_config.php index 427bcd2a8ca3cf5820da05ed27823c3ce2602152..7c7ab5f6c7f8210610f8a9292197507366c8a2c5 100644 --- a/db/migrations/5.1.4_fix_my_courses_group_config.php +++ b/db/migrations/5.1.4_fix_my_courses_group_config.php @@ -1,6 +1,11 @@ <?php final class FixMyCoursesGroupConfig extends Migration { + public function description() + { + return 'Ensures correct format of MY_COURSES_OPEN_GROUPS user config option'; + } + public function up() { ConfigValue::findEachBySQL( diff --git a/lib/object.inc.php b/lib/object.inc.php index 04190ba60cde790f4233c324cd91fcde99e568e1..f7bcf903f70ebb95628c6c434a58c446b8b55bf8 100644 --- a/lib/object.inc.php +++ b/lib/object.inc.php @@ -404,9 +404,9 @@ function object_id_to_type($id) ]; if (!in_array($id, [0, -1, -2])) { - $plugin = PluginManager::getInstance()->getPluginById($id); + $plugin = PluginManager::getInstance()->getPluginInfoById($id); if ($plugin) { - $search = get_class($plugin); + $search = $plugin['class']; } } else { $search = (int)$id;