]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add onPluginVersion()
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 20 Sep 2010 17:45:43 +0000 (19:45 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 20 Sep 2010 17:45:43 +0000 (19:45 +0200)
plugins/Comet/CometPlugin.php

index 29cb3004bf95df1ecb8543002b273aaca258e4b7..70b324b5c20d225683d0d6cc98079941e6b7c1c7 100644 (file)
@@ -42,7 +42,6 @@ require_once INSTALLDIR.'/plugins/Realtime/RealtimePlugin.php';
  * @license  http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link     http://status.net/
  */
-
 class CometPlugin extends RealtimePlugin
 {
     public $server   = null;
@@ -104,4 +103,15 @@ class CometPlugin extends RealtimePlugin
         }
         return '/' . implode('/', $path);
     }
+
+    function onPluginVersion(&$versions)
+    {
+        $versions[] = array('name' => 'Comet',
+                            'version' => STATUSNET_VERSION,
+                            'author' => 'Evan Prodromou',
+                            'homepage' => 'http://status.net/wiki/Plugin:Comet',
+                            'rawdescription' =>
+                            _m('Plugin to do "real time" updates using Comet/Bayeux.'));
+        return true;
+    }
 }