From 5e0842ceba062adbc2615bd522cecb1b54e201af Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Fri, 17 May 2024 12:02:47 +0000 Subject: [PATCH] fixes #4190 Closes #4190 Merge request studip/studip!3025 --- app/controllers/profile.php | 2 +- app/views/course/overview/index.php | 2 +- app/views/institute/overview/index.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/profile.php b/app/controllers/profile.php index b9a7cf73710..226890ea79d 100644 --- a/app/controllers/profile.php +++ b/app/controllers/profile.php @@ -220,7 +220,7 @@ class ProfileController extends AuthenticatedController $template = $homepageplugin->getHomepageTemplate($this->current_user->user_id); // create output of the plugins if (!empty($template)) { - $render .= $template->render(null, $layout); + $render .= $template->render(layout: $layout); } $layout->clear_attributes(); } diff --git a/app/views/course/overview/index.php b/app/views/course/overview/index.php index 4e69b4a18e2..b2387408924 100644 --- a/app/views/course/overview/index.php +++ b/app/views/course/overview/index.php @@ -76,7 +76,7 @@ if (!empty($plugins)) { $template = $plugin->getInfoTemplate($course_id); if ($template) { - echo $template->render(null, $layout); + echo $template->render(layout: $layout); $layout->clear_attributes(); } } diff --git a/app/views/institute/overview/index.php b/app/views/institute/overview/index.php index 7ed85460c46..53b66a85f9b 100644 --- a/app/views/institute/overview/index.php +++ b/app/views/institute/overview/index.php @@ -61,7 +61,7 @@ foreach ($plugins as $plugin) { $template = $plugin->getInfoTemplate($institute_id); if ($template) { - echo $template->render(NULL, $layout); + echo $template->render(layout: $layout); $layout->clear_attributes(); } } -- GitLab