X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FSimpleUrl%2FSimpleUrlPlugin.php;h=574b466df659b43fd9df0571d7fb218d65c13f77;hb=d8f4de450c7bddab525ee5059f856b50cfb59068;hp=5e2e8587824895d0a8ba629e481993d74f6bc5f2;hpb=9684cbe3c6d61be0b1cc2094bc4278cd8a21b33e;p=quix0rs-gnu-social.git diff --git a/plugins/SimpleUrl/SimpleUrlPlugin.php b/plugins/SimpleUrl/SimpleUrlPlugin.php index 5e2e858782..574b466df6 100644 --- a/plugins/SimpleUrl/SimpleUrlPlugin.php +++ b/plugins/SimpleUrl/SimpleUrlPlugin.php @@ -31,8 +31,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR.'/plugins/UrlShortener/UrlShortenerPlugin.php'; - class SimpleUrlPlugin extends UrlShortenerPlugin { public $serviceUrl; @@ -40,7 +38,8 @@ class SimpleUrlPlugin extends UrlShortenerPlugin function onInitializePlugin(){ parent::onInitializePlugin(); if(!isset($this->serviceUrl)){ - throw new Exception("must specify a serviceUrl"); + // TRANS: Exception thrown when the SimpleUrl plugin has been configured incorrectly. + throw new Exception(_m('You must specify a serviceUrl.')); } } @@ -51,14 +50,14 @@ class SimpleUrlPlugin extends UrlShortenerPlugin function onPluginVersion(&$versions) { $versions[] = array('name' => sprintf('SimpleUrl (%s)', $this->shortenerName), - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Craig Andrews', 'homepage' => 'http://status.net/wiki/Plugin:SimpleUrl', 'rawdescription' => + // TRANS: Plugin description. sprintf(_m('Uses %1$s URL-shortener service.'), $this->shortenerName)); return true; } } -