diff options
-rw-r--r-- | lib/Settings/Admin/AdminSettings.php | 4 | ||||
-rw-r--r-- | templates/settings/admin-settings.php | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/Settings/Admin/AdminSettings.php b/lib/Settings/Admin/AdminSettings.php index 08e151e10..29f5f9671 100644 --- a/lib/Settings/Admin/AdminSettings.php +++ b/lib/Settings/Admin/AdminSettings.php @@ -41,6 +41,7 @@ use OCP\IUser; use OCP\IUserSession; use OCP\L10N\IFactory; use OCP\Settings\ISettings; +use OCP\Util; class AdminSettings implements ISettings { private Config $talkConfig; @@ -90,6 +91,9 @@ class AdminSettings implements ISettings { $this->initRequestSignalingServerTrial(); $this->initSIPBridge(); + + Util::addScript('spreed', 'talk-admin-settings'); + return new TemplateResponse('spreed', 'settings/admin-settings', [], ''); } diff --git a/templates/settings/admin-settings.php b/templates/settings/admin-settings.php index ea33e5345..e8a5a911a 100644 --- a/templates/settings/admin-settings.php +++ b/templates/settings/admin-settings.php @@ -1,8 +1,5 @@ <?php -/** @var array $_ */ /** @var \OCP\IL10N $l */ -script('spreed', ['talk-admin-settings']); -style('spreed', ['settings-admin']); ?> <div id="admin_settings"> |