From c670c23455f68a4d2dce1a0cf078c05429d200d9 Mon Sep 17 00:00:00 2001
From: Joas Schilling <nickvergessen@owncloud.com>
Date: Wed, 20 Apr 2016 12:30:48 +0200
Subject: [PATCH] Add loadAdditionalScripts events to admin and personal for
 plugins that have no section

---
 settings/admin.php    | 2 ++
 settings/personal.php | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/settings/admin.php b/settings/admin.php
index e0d3a907f47..cfb7eb5c541 100644
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -41,6 +41,8 @@ OC_Util::addScript('settings', 'certificates');
 OC_Util::addScript('files', 'jquery.iframe-transport');
 OC_Util::addScript('files', 'jquery.fileupload');
 
+\OC::$server->getEventDispatcher()->dispatch('OC\Settings\Admin::loadAdditionalScripts');
+
 $showLog = (\OC::$server->getConfig()->getSystemValue('log_type', 'owncloud') === 'owncloud');
 $numEntriesToLoad = 3;
 $entries = OC_Log_Owncloud::getEntries($numEntriesToLoad + 1);
diff --git a/settings/personal.php b/settings/personal.php
index 62a718985f8..90b8bb2fbbb 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -54,6 +54,8 @@ if ($config->getSystemValue('enable_avatars', true) === true) {
 	\OC_Util::addVendorStyle('jcrop/css/jquery.Jcrop');
 }
 
+\OC::$server->getEventDispatcher()->dispatch('OC\Settings\Personal::loadAdditionalScripts');
+
 // Highlight navigation entry
 OC::$server->getNavigationManager()->setActiveEntry('personal');
 
-- 
GitLab