]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
$related must contain class names, no table names ("all" lower-case) + fixed some...
authorRoland Haeder <roland@mxchange.org>
Thu, 5 Mar 2015 17:43:57 +0000 (18:43 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 29 Mar 2020 22:20:51 +0000 (00:20 +0200)
Again, it must be User_flag_profile (class name), not user_flag_profile (table name).

Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/DirectMessage/DirectMessagePlugin.php
plugins/OStatus/OStatusPlugin.php
plugins/UserFlag/UserFlagPlugin.php

index 57492189dfc8a19cd2c589f1196a1b6f05e138a0..994cc7dd388a5018a51323a7a2034ea8cf341a57 100644 (file)
@@ -153,7 +153,7 @@ class DirectMessagePlugin extends Plugin
         return true;
     }
 
-    public function onProfileDeleteRelated(Profile $profile, &$related)
+    public function onProfileDeleteRelated(Profile $profile, array &$related)
     {
         $msg = new Message();
         $msg->from_profile = $profile->id;
index 09330452fc8e1914c8791a431cef50692487744c..394606d78a4c15517d802879ecc601bfaab52afe 100644 (file)
@@ -1546,7 +1546,7 @@ class OStatusPlugin extends Plugin
         return true;
     }
 
-    public function onProfileDeleteRelated($profile, &$related)
+    public function onProfileDeleteRelated(Profile $profile, array &$related)
     {
         // Ostatus_profile has a 'profile_id' property, which will be used to find the object
         $related[] = 'Ostatus_profile';
index b6464b22dec5f72902c6b63e66ee6460f03bc7e5..9c8e29c5376ced04a202edf2fc7ec857de34ec46 100644 (file)
@@ -177,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)) {
@@ -198,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;
     }