]> 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 Haeder <roland@mxchange.org>
Thu, 5 Mar 2015 17:45:52 +0000 (18:45 +0100)
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 de13ef680fa3cee7865ad5912519131794d77981..34533ba9e82cf5406c960aeb484168ca60d91c2e 100644 (file)
@@ -149,7 +149,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 1cd7deee3c5614625210026495974d28722181b0..66c8e47f8cb53ede29c88668c02f6c387158384e 100644 (file)
@@ -1373,7 +1373,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 d2afeaced85346c4f6aae441db7466d6893e3438..27ebefb05377612d783d8bb41d391dc4dbef0327 100644 (file)
@@ -175,7 +175,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 +196,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;
     }