Skip to content
Snippets Groups Projects
Commit eba1fe03 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

fixes #4248

Closes #4248

Merge request !3079
parent 4047e28e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment