We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 0ddfcc55 authored by Eric Helgeson's avatar Eric Helgeson

Added Plugin Version info to recaptcha plugin

parent d29a791f
...@@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { ...@@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
define('RECAPTCHA', '0.2');
require_once(INSTALLDIR.'/plugins/Recaptcha/recaptchalib.php'); require_once(INSTALLDIR.'/plugins/Recaptcha/recaptchalib.php');
class RecaptchaPlugin extends Plugin class RecaptchaPlugin extends Plugin
...@@ -88,4 +86,16 @@ class RecaptchaPlugin extends Plugin ...@@ -88,4 +86,16 @@ class RecaptchaPlugin extends Plugin
return false; 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;
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment