X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FModHelper%2FModHelperPlugin.php;h=b37ea445788aa651a7172ec0dad28bcaebb62199;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=bed0d8d49e3d8160e98535d3e2e5cf347aecb663;hpb=0d487a1ea000b327cfaa5a2632e9a2a9fa61f23c;p=quix0rs-gnu-social.git diff --git a/plugins/ModHelper/ModHelperPlugin.php b/plugins/ModHelper/ModHelperPlugin.php index bed0d8d49e..b37ea44578 100644 --- a/plugins/ModHelper/ModHelperPlugin.php +++ b/plugins/ModHelper/ModHelperPlugin.php @@ -29,10 +29,10 @@ 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' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Brion Vibber', 'homepage' => 'http://status.net/wiki/Plugin:ModHelper', 'rawdescription' => @@ -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. :)