Add onPluginVersion()
This commit is contained in:
parent
2236e2eaf0
commit
3005f26aa2
|
@ -53,7 +53,6 @@ define('BLOGSPAMNETPLUGIN_VERSION', '0.1');
|
||||||
*
|
*
|
||||||
* @see Event
|
* @see Event
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BlogspamNetPlugin extends Plugin
|
class BlogspamNetPlugin extends Plugin
|
||||||
{
|
{
|
||||||
var $baseUrl = 'http://test.blogspam.net:8888/';
|
var $baseUrl = 'http://test.blogspam.net:8888/';
|
||||||
|
@ -142,4 +141,15 @@ class BlogspamNetPlugin extends Plugin
|
||||||
{
|
{
|
||||||
return 'BlogspamNetPlugin/'.BLOGSPAMNETPLUGIN_VERSION . ' StatusNet/' . STATUSNET_VERSION;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user