]> 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:43:57 +0000 (18:43 +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 9d471076337e4801576cf59c90c583e5ed1fa7ae..7c0530eb6611c2ed13da417e0eb562c7f2482c0b 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 696019337a04257461498a6bf6bee511c931c8a2..986dd901a0f0a86ef828d001f7b16553fd3edac1 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;
     }