diff --git a/lib/classes/StudipController.php b/lib/classes/StudipController.php index 0643836c6b632fb6b97e912417692baaa291a5f2..a908a477c376cbfa6cb2fa319ed2d8bdcc081b6e 100644 --- a/lib/classes/StudipController.php +++ b/lib/classes/StudipController.php @@ -649,8 +649,7 @@ abstract class StudipController extends Trails\Controller $args = func_get_args(); $unconsumed = array_shift($args); - [$action, $extracted_args, $format] = $this->extract_action_and_args($unconsumed); - $this->format = isset($format) ? $format : 'html'; + [$action, $extracted_args] = $this->extract_action_and_args($unconsumed); $this->current_action = $action; $args = array_merge($extracted_args, $args); $callable = $this->map_action($action); diff --git a/lib/trails/Controller.php b/lib/trails/Controller.php index bafb8db821a776c80c1d2d9f165a2bbb6ead4d26..191838069614395e0d152d7f0640a1c6db4ecb5d 100644 --- a/lib/trails/Controller.php +++ b/lib/trails/Controller.php @@ -32,7 +32,7 @@ class Controller protected Response $response; protected bool $performed = false; protected Template|string|null $layout = null; - protected string $format = 'html'; + private string $format = 'html'; /** * @param Dispatcher $dispatcher the dispatcher who creates this instance