diff options
author | Evan Prodromou <evan@status.net> | 2010-01-07 17:33:46 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-07 17:33:46 -0800 |
commit | 9693b2cf2ff66cccc40497ac6b4c2dcc0f574ea2 (patch) | |
tree | bf87d0fcf2590ec15e8172cfd543ef9b830fec80 | |
parent | 9fc63a56a2280c69f55b747e4c1a78b45ea799a6 (diff) |
add default plugin version information
-rw-r--r-- | lib/plugin.php | 11 |
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; + } } |