diff --git a/app/controllers/studip_controller.php b/app/controllers/studip_controller.php index 2e93d0556fb8fd0f46b9084429d3973c6ab2a585..1190416a1303f42010ead09271356670c399eb29 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