From 777b775e10410f6df19c4afc425622bf31ec7f58 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Wed, 28 Sep 2022 12:01:13 +0200
Subject: [PATCH] fix deprecation from 48960208, re #1016

---
 app/controllers/studip_controller.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/controllers/studip_controller.php b/app/controllers/studip_controller.php
index 2e93d0556fb..1190416a130 100644
--- a/app/controllers/studip_controller.php
+++ b/app/controllers/studip_controller.php
@@ -263,10 +263,10 @@ abstract class StudipController extends Trails_Controller
 
         // Try to create route if none given
         if ($to === '') {
-            $to = isset($this->parent_controller)
-                ? $this->parent_controller->current_action
-                : $this->current_action;
-            return $this->action_url($to);
+            $args[0] = isset($this->parent_controller)
+                     ? $this->parent_controller->current_action
+                     : $this->current_action;
+            return $this->action_url(...$args);
         }
 
         // Create url for a specific action
-- 
GitLab