From 5efa0ea9c1be2b6cc9240d5d47ddbab73c4cea6a Mon Sep 17 00:00:00 2001
From: Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de>
Date: Wed, 14 Feb 2024 11:45:46 +0100
Subject: [PATCH] Have STUDIP.config on login page too.

---
 lib/include/html_head.inc.php | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/include/html_head.inc.php b/lib/include/html_head.inc.php
index 9189031edac..5ff4cb1bd0e 100644
--- a/lib/include/html_head.inc.php
+++ b/lib/include/html_head.inc.php
@@ -47,11 +47,12 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']);
                 parameters: <?= json_encode(URLHelper::getLinkParams(), JSON_FORCE_OBJECT) ?>
             },
             jsupdate_enable: <?= json_encode(
-                             is_object($GLOBALS['perm']) &&
-                             $GLOBALS['perm']->have_perm('autor') &&
-                             PersonalNotifications::isActivated()) ?>,
+                                 is_object($GLOBALS['perm']) &&
+                                 $GLOBALS['perm']->have_perm('autor') &&
+                                 PersonalNotifications::isActivated()) ?>,
             wysiwyg_enabled: true,
-            editor_enabled: true
+            editor_enabled: true,
+            config: <?= json_encode(['BROADCASTING' => app()->get(\Studip\Broadcasting\Contracts\Broadcaster::class)->clientOptions()]) ?>,
         }
     </script>
 
-- 
GitLab