diff --git a/app/controllers/profile.php b/app/controllers/profile.php index b9a7cf737109dc20cf58619f7300aecaf2e23e07..226890ea79d20404f8f384ce63ca0fab3964b19b 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 4e69b4a18e28190b39e37e88b5be4cc5890bcd7e..b23874089249f5232ec40539018aea03028b57ce 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 7ed85460c461b39669fe72a8ef72341946be7866..53b66a85f9b9a7f7b9a89041f79fff5ce4415334 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(); } }