Add onPluginVersion()

This commit is contained in:
Siebrand Mazeland 2010-09-20 19:42:56 +02:00
parent 2236e2eaf0
commit 3005f26aa2

View File

@ -53,7 +53,6 @@ define('BLOGSPAMNETPLUGIN_VERSION', '0.1');
*
* @see Event
*/
class BlogspamNetPlugin extends Plugin
{
var $baseUrl = 'http://test.blogspam.net:8888/';
@ -142,4 +141,15 @@ class BlogspamNetPlugin extends Plugin
{
return 'BlogspamNetPlugin/'.BLOGSPAMNETPLUGIN_VERSION . ' StatusNet/' . STATUSNET_VERSION;
}
function onPluginVersion(&$versions)
{
$versions[] = array('name' => 'BlogspamNet',
'version' => BLOGSPAMNETPLUGIN_VERSION,
'author' => 'Evan Prodromou, Brion Vibber',
'homepage' => 'http://status.net/wiki/Plugin:BlogspamNet',
'rawdescription' =>
_m('Plugin to check submitted notices with blogspam.net.'));
return true;
}
}