From 4ebd095407e29c464021d030852da9b4a98ca92e Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 4 Apr 2014 03:12:24 +0200 Subject: fix namespace for hooks --- appinfo/app.php | 2 +- 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) { -- cgit v1.2.3