]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/ModHelper/ModHelperPlugin.php
Merged
[quix0rs-gnu-social.git] / plugins / ModHelper / ModHelperPlugin.php
index 4b4bf8f447d24d203a3807eb4160b7225e263198..b37ea445788aa651a7172ec0dad28bcaebb62199 100644 (file)
@@ -29,7 +29,7 @@ class ModHelperPlugin extends Plugin
 {
     static $rights = array(Right::SILENCEUSER, Right::TRAINSPAM, Right::REVIEWSPAM);
 
-    function onPluginVersion(&$versions)
+    function onPluginVersion(array &$versions)
     {
         $versions[] = array('name' => 'ModHelper',
                             'version' => GNUSOCIAL_VERSION,
@@ -42,7 +42,7 @@ class ModHelperPlugin extends Plugin
         return true;
     }
 
-    function onUserRightsCheck($profile, $right, &$result)
+    function onUserRightsCheck(Profile $profile, $right, &$result)
     {
         if (in_array($right, self::$rights)) {
             // Hrm.... really we should confirm that the *other* user isn't privleged. :)