Add onPluginVersion()

This commit is contained in:
Siebrand Mazeland 2010-09-20 19:45:43 +02:00
parent 3005f26aa2
commit f975c17329
1 changed files with 11 additions and 1 deletions

View File

@ -42,7 +42,6 @@ require_once INSTALLDIR.'/plugins/Realtime/RealtimePlugin.php';
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
class CometPlugin extends RealtimePlugin
{
public $server = null;
@ -104,4 +103,15 @@ class CometPlugin extends RealtimePlugin
}
return '/' . implode('/', $path);
}
function onPluginVersion(&$versions)
{
$versions[] = array('name' => 'Comet',
'version' => STATUSNET_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:Comet',
'rawdescription' =>
_m('Plugin to do "real time" updates using Comet/Bayeux.'));
return true;
}
}