diff options
-rw-r--r-- | appinfo/app.php | 2 | ||||
-rw-r--r-- | hooks/user.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index dcc00f3d3..6e9d0396d 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -56,7 +56,7 @@ if(\OCP\App::isEnabled('appframework')){ $api->addRegularTask('OCA\News\Backgroundjob\Task', 'run'); $api->connectHook('OC_User', 'pre_deleteUser', - 'OCA\News\Hooks\UserHooks', 'deleteUser'); + 'OCA\News\Hooks\User', 'deleteUser'); } else { $msg = 'Can not enable the News app because the App Framework App is disabled'; diff --git a/hooks/user.php b/hooks/user.php index 820f0f881..667153fb4 100644 --- a/hooks/user.php +++ b/hooks/user.php @@ -28,7 +28,7 @@ namespace OCA\News\Hooks; use \OCA\News\DependencyInjection\DIContainer; -class UserHooks { +class User { public static deleteUser($params) { |