summaryrefslogtreecommitdiff
path: root/lib/plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugin.php')
-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;
+ }
}