X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FUserFlag%2FUserFlagPlugin.php;h=986dd901a0f0a86ef828d001f7b16553fd3edac1;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=d2afeaced85346c4f6aae441db7466d6893e3438;hpb=b8bca62e3b4b139fac5d1bb69bf683882b799d86;p=quix0rs-gnu-social.git diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php index d2afeaced8..986dd901a0 100644 --- a/plugins/UserFlag/UserFlagPlugin.php +++ b/plugins/UserFlag/UserFlagPlugin.php @@ -152,6 +152,8 @@ class UserFlagPlugin extends Plugin * @param boolean &$result out, result of the check * * @return boolean hook result + * @TODO Other implementing classes expect Profile here!!! + * @WARNING */ function onUserRightsCheck($user, $right, &$result) { @@ -175,7 +177,7 @@ class UserFlagPlugin extends Plugin * * @return boolean hook result */ - function onEndBlockProfile($user, $profile) + function onEndBlockProfile(User $user, Profile $profile) { if ($this->flagOnBlock && !User_flag_profile::exists($profile->id, $user->id)) { @@ -196,9 +198,9 @@ class UserFlagPlugin extends Plugin * * @return boolean hook result */ - function onProfileDeleteRelated($profile, &$related) + public function onProfileDeleteRelated(Profile $profile, array &$related) { - $related[] = 'user_flag_profile'; + $related[] = 'User_flag_profile'; return true; }