X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FBitlyUrl%2FBitlyUrlPlugin.php;h=3bf0399dfba6c7f38c3d40b2d54b3fa37b9c42fb;hb=5c0a3102ff60472f60da76d69b0830dca726cca4;hp=079a06a3e75952d10e2420299bcbfda0ffd29a2c;hpb=12ad588a9bae4cdbbd9461666cd364c6fcebd86a;p=quix0rs-gnu-social.git diff --git a/plugins/BitlyUrl/BitlyUrlPlugin.php b/plugins/BitlyUrl/BitlyUrlPlugin.php index 079a06a3e7..3bf0399dfb 100644 --- a/plugins/BitlyUrl/BitlyUrlPlugin.php +++ b/plugins/BitlyUrl/BitlyUrlPlugin.php @@ -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. @@ -111,7 +113,6 @@ class BitlyUrlPlugin extends UrlShortenerPlugin */ protected function query($url) { - // http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/shorten $params = http_build_query(array( 'login' => $this->getLogin(), 'apiKey' => $this->getApiKey()), '', '&'); @@ -148,7 +149,7 @@ 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' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/BitlyUrl', 'rawdescription' => @@ -168,7 +169,7 @@ class BitlyUrlPlugin extends UrlShortenerPlugin public function onRouterInitialized(URLMapper $m) { $m->connect('panel/bitly', - array('action' => 'bitlyadminpanel')); + ['action' => 'bitlyadminpanel']); return true; }