Add onPluginVersion().
Add translator documentation. Whitespace update. Add FIXME for global functions.
This commit is contained in:
parent
9a59d44208
commit
ff33d0ff35
|
@ -47,10 +47,8 @@ define('SPOTIFYPLUGIN_VERSION', '0.1');
|
||||||
*
|
*
|
||||||
* @see Event
|
* @see Event
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SpotifyPlugin extends Plugin
|
class SpotifyPlugin extends Plugin
|
||||||
{
|
{
|
||||||
|
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
@ -74,8 +72,22 @@ class SpotifyPlugin extends Plugin
|
||||||
return 'SpotifyPlugin/'.SPOTIFYPLUGIN_VERSION .
|
return 'SpotifyPlugin/'.SPOTIFYPLUGIN_VERSION .
|
||||||
' StatusNet/' . STATUSNET_VERSION;
|
' StatusNet/' . STATUSNET_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onPluginVersion(&$versions)
|
||||||
|
{
|
||||||
|
$versions[] = array('name' => 'Spotify',
|
||||||
|
'version' => SPOTIFYPLUGIN_VERSION,
|
||||||
|
'author' => 'Nick Holliday',
|
||||||
|
'homepage' => 'http://status.net/wiki/Plugin:Spotify',
|
||||||
|
'rawdescription' =>
|
||||||
|
// TRANS: Plugin description.
|
||||||
|
_m('Create pretty <a href="http://www.spotify.com">Spotify</a> URLs.'));
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @todo FIXME: This probably should not be global functions.
|
||||||
function doSpotifyLookup($uri, $isArtist)
|
function doSpotifyLookup($uri, $isArtist)
|
||||||
{
|
{
|
||||||
$request = HTTPClient::start();
|
$request = HTTPClient::start();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user