Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2016-01-14 18:57:33 +0300
committerJörn Friedrich Dreyer <jfd@butonic.de>2016-01-14 18:57:33 +0300
commit2d1b9a5f9f3ae1b7f5f9de9b8742acdb29a9a65e (patch)
tree5849a43824506ccc2cc01c1cdb998ddfb4b0eb18 /settings/users.php
parent8f89e3520d74e1805dc46947742a17683ece6ca7 (diff)
allow apps to load additional scripts on the user settings page via the event dispatcher
Diffstat (limited to 'settings/users.php')
-rw-r--r--settings/users.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/settings/users.php b/settings/users.php
index 81f6ed4335c..9d89ff65b4a 100644
--- a/settings/users.php
+++ b/settings/users.php
@@ -103,6 +103,8 @@ $defaultQuota=$config->getAppValue('files', 'default_quota', 'none');
$defaultQuotaIsUserDefined=array_search($defaultQuota, $quotaPreset)===false
&& array_search($defaultQuota, array('none', 'default'))===false;
+\OC::$server->getEventDispatcher()->dispatch('OC\Settings\Users::loadAdditionalScripts');
+
$tmpl = new OC_Template("settings", "users/main", "user");
$tmpl->assign('groups', $groups);
$tmpl->assign('sortGroups', $sortGroupsBy);