X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FLilUrl%2FLilUrlPlugin.php;h=fcbee2b56dcc896ab9f53036167a7a66a93e562d;hb=b92ef93d36947e64da2e2078531848539d18bfea;hp=1c3d6f84b3446724fe17d8896f5c21d2e4382733;hpb=696e4ba393c658d5b2e1fe46e1389bd7b2cfdb34;p=quix0rs-gnu-social.git diff --git a/plugins/LilUrl/LilUrlPlugin.php b/plugins/LilUrl/LilUrlPlugin.php index 1c3d6f84b3..fcbee2b56d 100644 --- a/plugins/LilUrl/LilUrlPlugin.php +++ b/plugins/LilUrl/LilUrlPlugin.php @@ -31,8 +31,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR.'/plugins/UrlShortener/UrlShortenerPlugin.php'; - class LilUrlPlugin extends UrlShortenerPlugin { public $serviceUrl; @@ -40,7 +38,8 @@ class LilUrlPlugin extends UrlShortenerPlugin function onInitializePlugin(){ parent::onInitializePlugin(); if(!isset($this->serviceUrl)){ - throw new Exception("must specify a serviceUrl"); + // TRANS: Exception thrown when URL shortening plugin was configured incorrectly. + throw new Exception(_m('A serviceUrl must be specified.')); } } @@ -58,17 +57,18 @@ class LilUrlPlugin extends UrlShortenerPlugin } } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => sprintf('LilUrl (%s)', $this->shortenerName), - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Craig Andrews', 'homepage' => 'http://status.net/wiki/Plugin:LilUrl', 'rawdescription' => + // TRANS: Plugin description. + // TRANS: %1$s is the service URL. sprintf(_m('Uses %1$s URL-shortener service.'), $this->shortenerName)); return true; } } -