]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add default plugin version information
authorEvan Prodromou <evan@status.net>
Fri, 8 Jan 2010 01:33:46 +0000 (17:33 -0800)
committerEvan Prodromou <evan@status.net>
Fri, 8 Jan 2010 01:33:46 +0000 (17:33 -0800)
lib/plugin.php

index de7313e59e2e52e16b4a5bcca1ffe754aa6566aa..65ccdafbb02af1b82277b42f77aa7cd1734f446e 100644 (file)
@@ -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;
+    }
 }