]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/BitlyUrl/BitlyUrlPlugin.php
[ROUTES] Allow accept-header specification during router creation
[quix0rs-gnu-social.git] / plugins / BitlyUrl / BitlyUrlPlugin.php
index ebaa2dbd2d3723855d80d0074cdf939b5338dcae..3bf0399dfba6c7f38c3d40b2d54b3fa37b9c42fb 100644 (file)
@@ -35,6 +35,8 @@ if (!defined('STATUSNET')) {
 
 class BitlyUrlPlugin extends UrlShortenerPlugin
 {
+    const PLUGIN_VERSION = '2.0.0';
+
     public $shortenerName = 'bit.ly';
     public $serviceUrl = 'http://api.bit.ly/v3/shorten?longUrl=%s';
     public $login; // To set a site-default when admins or users don't override it.
@@ -147,9 +149,9 @@ class BitlyUrlPlugin extends UrlShortenerPlugin
     function onPluginVersion(array &$versions)
     {
         $versions[] = array('name' => sprintf('BitlyUrl (%s)', $this->shortenerName),
-                            'version' => GNUSOCIAL_VERSION,
+                            'version' => self::PLUGIN_VERSION,
                             'author' => 'Craig Andrews, Brion Vibber',
-                            'homepage' => 'http://status.net/wiki/Plugin:BitlyUrl',
+                            'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/BitlyUrl',
                             'rawdescription' =>
                             // TRANS: Plugin description. %1$s is the URL shortening service base URL (for example "bit.ly").
                             sprintf(_m('Uses <a href="http://%1$s/">%1$s</a> URL-shortener service.'),
@@ -167,7 +169,7 @@ class BitlyUrlPlugin extends UrlShortenerPlugin
     public function onRouterInitialized(URLMapper $m)
     {
         $m->connect('panel/bitly',
-                    array('action' => 'bitlyadminpanel'));
+                    ['action' => 'bitlyadminpanel']);
         return true;
     }