aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-06-01 07:37:38 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2024-06-01 07:37:38 +0000
commiteba1fe03484ef9bd2d5974bc18a0da48f2c0ef0b (patch)
treea879ab24dcb70d957c092b917d7ed83c438bc07f /lib
parent4047e28efd43011ff70d8c5b596aa1e8673a6246 (diff)
fixes #4248
Closes #4248 Merge request studip/studip!3079
Diffstat (limited to 'lib')
-rw-r--r--lib/classes/StudipController.php3
-rw-r--r--lib/trails/Controller.php2
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/classes/StudipController.php b/lib/classes/StudipController.php
index 0643836..a908a47 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 bafb8db..1918380 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