summaryrefslogtreecommitdiff
path: root/plugins/Recaptcha/RecaptchaPlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-19 00:32:05 -0500
committerEvan Prodromou <evan@status.net>2010-01-19 00:32:05 -0500
commitdd0a99f58acbf779512cd4dd02be50abbf55773c (patch)
tree788ae859471bea7dc08093ba18d5243f0847e579 /plugins/Recaptcha/RecaptchaPlugin.php
parent01dc77c2fd783f8b7ff796ca06013804971c8f5e (diff)
parent0ddfcc5521e023db7be52fe783800a39701ff94f (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'plugins/Recaptcha/RecaptchaPlugin.php')
-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;
+ }
}