diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
|---|---|---|
| committer | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
| commit | 4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch) | |
| tree | 5c07151ae61276d334e88f6309c30d439a85c12e /lib/modules/EvaluationsWidget.php | |
| parent | da0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff) | |
| parent | 97a188592c679890a25c37ab78463add76a52ff7 (diff) | |
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'lib/modules/EvaluationsWidget.php')
| -rw-r--r-- | lib/modules/EvaluationsWidget.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/modules/EvaluationsWidget.php b/lib/modules/EvaluationsWidget.php index 64458d9..21410e2 100644 --- a/lib/modules/EvaluationsWidget.php +++ b/lib/modules/EvaluationsWidget.php @@ -43,15 +43,9 @@ class EvaluationsWidget extends CorePlugin implements PortalPlugin } // include and show votes and tests - $controller = app(AuthenticatedController::class, ['dispatcher' => app(\Trails_Dispatcher::class)]); + $controller = app(AuthenticatedController::class, ['dispatcher' => app(\Trails\Dispatcher::class)]); $controller->suppress_empty_output = true; - - if (Config::get()->EVAL_ENABLE) { - $response = $controller->relay('evaluation/display/studip')->body; - } - - $controller->suppress_empty_output = (bool)$response; - $response .= $controller->relay('questionnaire/widget/start')->body; + $response = $controller->relay('questionnaire/widget/start')->body; $template = $GLOBALS['template_factory']->open('shared/string'); $template->content = $response; |
