From: Evan Prodromou Date: Fri, 8 Jan 2010 01:33:46 +0000 (-0800) Subject: add default plugin version information X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9693b2cf2ff66cccc40497ac6b4c2dcc0f574ea2;p=quix0rs-gnu-social.git add default plugin version information --- 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; + } }