summaryrefslogtreecommitdiff
path: root/lib/plugin.php
diff options
context:
space:
mode:
authorroot <root@ip-10-250-162-129.ec2.internal>2010-01-09 23:25:08 +0000
committerroot <root@ip-10-250-162-129.ec2.internal>2010-01-09 23:25:08 +0000
commitd59df6b27013fb534d6444d8e4790f2edcd9459a (patch)
treebd5bcc8e4ecd0e9391efdcac8ff906fd8b506a60 /lib/plugin.php
parentd6db8e58170e6e78a0fd67d50f7fea5d95b5d9c8 (diff)
parentf396701b6466749c09ce16b1e7f2f96c10b05cdd (diff)
Merge branch '0.9.x' of git://gitorious.org/statusnet/mainline into 0.9.x
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;
+ }
}