From 9693b2cf2ff66cccc40497ac6b4c2dcc0f574ea2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 7 Jan 2010 17:33:46 -0800 Subject: [PATCH] add default plugin version information --- lib/plugin.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/plugin.php b/lib/plugin.php index de7313e59e..65ccdafbb0 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; + } } -- 2.39.5