Merge pull request #21727 from owncloud/adddispatchtousersettings

allow apps to load additional scripts on the user settings page ...
This commit is contained in:
Thomas Müller 2016-01-14 17:42:31 +01:00
commit b48ddc94a9
1 changed files with 2 additions and 0 deletions

View File

@ -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);