add default plugin version information

This commit is contained in:
Evan Prodromou 2010-01-07 17:33:46 -08:00
parent 9fc63a56a2
commit 9693b2cf2f

View File

@ -104,5 +104,16 @@ class Plugin
{
$this->log(LOG_DEBUG, $msg);
}
function onPluginVersion(&$versions)
{
$cls = get_class($this);
$name = mb_substr($cls, 0, -6);
$versions[] = array('name' => $name,
'version' => _('Unknown'));
return true;
}
}