diff options
| -rw-r--r-- | app/controllers/profile.php | 2 | ||||
| -rw-r--r-- | app/views/course/overview/index.php | 2 | ||||
| -rw-r--r-- | 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 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(); } } |
