aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-17 12:02:47 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-17 12:02:47 +0000
commit5e0842ceba062adbc2615bd522cecb1b54e201af (patch)
tree71fa6211a2e41bd4f66ff376f1f34622460f90e1 /app
parent06d7582a1c628fac933868cc56cbd3135277b7e7 (diff)
fixes #4190
Closes #4190 Merge request studip/studip!3025
Diffstat (limited to 'app')
-rw-r--r--app/controllers/profile.php2
-rw-r--r--app/views/course/overview/index.php2
-rw-r--r--app/views/institute/overview/index.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/profile.php b/app/controllers/profile.php
index b9a7cf7..226890e 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 4e69b4a..b238740 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 7ed8546..53b66a8 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();
}
}