summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-07 17:33:46 -0800
committerEvan Prodromou <evan@status.net>2010-01-07 17:33:46 -0800
commit9693b2cf2ff66cccc40497ac6b4c2dcc0f574ea2 (patch)
treebf87d0fcf2590ec15e8172cfd543ef9b830fec80 /lib
parent9fc63a56a2280c69f55b747e4c1a78b45ea799a6 (diff)
add default plugin version information
Diffstat (limited to 'lib')
-rw-r--r--lib/plugin.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/plugin.php b/lib/plugin.php
index de7313e59..65ccdafbb 100644
--- a/lib/plugin.php
+++ b/lib/plugin.php
@@ -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;
+ }
}