Merge pull request #22310 from nextcloud/backport/22221/stable18-2

[stable18] fixing a logged deprecation message #22309
This commit is contained in:
Joas Schilling 2020-08-20 08:16:00 +02:00 committed by GitHub
commit 5e91580111
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ if(count($configPrefixes) > 0) {
OC_User::useBackend($userBackend);
// Hook to allow plugins to work on registered backends
OC::$server->getEventDispatcher()->dispatch('OCA\\User_LDAP\\User\\User::postLDAPBackendAdded');
OC::$server->getEventDispatcher()->dispatch('OCA\\User_LDAP\\User\\User::postLDAPBackendAdded', new \OCP\EventDispatcher\Event());
\OC::$server->getGroupManager()->addBackend($groupBackend);