summaryrefslogtreecommitdiff
path: root/plugins/Recaptcha
diff options
context:
space:
mode:
authorEric Helgeson <erichelgeson@gmail.com>2010-01-18 18:31:13 -0500
committerEric Helgeson <erichelgeson@gmail.com>2010-01-18 18:33:09 -0500
commit0ddfcc5521e023db7be52fe783800a39701ff94f (patch)
treecee723cd2ad5218ac8d5c6bcb5c09e7313b59aad /plugins/Recaptcha
parentd29a791fff9469d2b097d62028be9c8e06482e69 (diff)
Added Plugin Version info to recaptcha plugin
Diffstat (limited to 'plugins/Recaptcha')
-rw-r--r--plugins/Recaptcha/RecaptchaPlugin.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/plugins/Recaptcha/RecaptchaPlugin.php b/plugins/Recaptcha/RecaptchaPlugin.php
index 3665214f8..c585da43c 100644
--- a/plugins/Recaptcha/RecaptchaPlugin.php
+++ b/plugins/Recaptcha/RecaptchaPlugin.php
@@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1);
}
-define('RECAPTCHA', '0.2');
-
require_once(INSTALLDIR.'/plugins/Recaptcha/recaptchalib.php');
class RecaptchaPlugin extends Plugin
@@ -88,4 +86,16 @@ class RecaptchaPlugin extends Plugin
return false;
}
}
+
+ function onPluginVersion(&$versions)
+ {
+ $versions[] = array('name' => 'Recaptcha',
+ 'version' => STATUSNET_VERSION,
+ 'author' => 'Eric Helgeson',
+ 'homepage' => 'http://status.net/wiki/Plugin:Recaptcha',
+ 'rawdescription' =>
+ _m('Uses <a href="http://recaptcha.org/">Recaptcha</a> service to add a '.
+ 'captcha to the registration page.'));
+ return true;
+ }
}