]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Blacklist/BlacklistPlugin.php
Err, don't need that comment.
[quix0rs-gnu-social.git] / plugins / Blacklist / BlacklistPlugin.php
index 2a99e65f112dd41f0035caeb48a684d64cf6d409..31929fcadc215b612cc949f1348eb9c8c2272790 100644 (file)
@@ -42,7 +42,7 @@ if (!defined('STATUSNET')) {
  */
 class BlacklistPlugin extends Plugin
 {
-    const VERSION = STATUSNET_VERSION;
+    const VERSION = GNUSOCIAL_VERSION;
 
     public $nicknames = array();
     public $urls      = array();
@@ -274,11 +274,11 @@ class BlacklistPlugin extends Plugin
     /**
      * Add our actions to the URL router
      *
-     * @param Net_URL_Mapper $m URL mapper for this hit
+     * @param URLMapper $m URL mapper for this hit
      *
      * @return boolean hook return
      */
-    function onRouterInitialized($m)
+    public function onRouterInitialized(URLMapper $m)
     {
         $m->connect('panel/blacklist', array('action' => 'blacklistadminpanel'));
         return true;
@@ -291,13 +291,13 @@ class BlacklistPlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onPluginVersion(&$versions)
+    function onPluginVersion(array &$versions)
     {
         $versions[] = array('name' => 'Blacklist',
                             'version' => self::VERSION,
                             'author' => 'Evan Prodromou',
                             'homepage' =>
-                            'http://status.net/wiki/Plugin:Blacklist',
+                            'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Blacklist',
                             'description' =>
                             // TRANS: Plugin description.
                             _m('Keeps a blacklist of forbidden nickname '.
@@ -481,7 +481,7 @@ class BlacklistPlugin extends Plugin
     /**
      * Check URLs and homepages for blacklisted users.
      */
-    function onStartSubscribe($subscriber, $other)
+    function onStartSubscribe(Profile $subscriber, Profile $other)
     {
         foreach (array($other->profileurl, $other->homepage) as $url) {