X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FClientSideShorten%2FClientSideShortenPlugin.php;h=4d87ab22404f905e30b2b5753bd99caf074a86eb;hb=546a03b5eac5f172d543a889625e2f4de446e8b7;hp=cc109292318a06d3a04ee1191ad649d58380dea7;hpb=707dd44f6baa523e1187ff070ad102f96d168385;p=quix0rs-gnu-social.git diff --git a/plugins/ClientSideShorten/ClientSideShortenPlugin.php b/plugins/ClientSideShorten/ClientSideShortenPlugin.php index cc10929231..4d87ab2240 100644 --- a/plugins/ClientSideShorten/ClientSideShortenPlugin.php +++ b/plugins/ClientSideShorten/ClientSideShortenPlugin.php @@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once(INSTALLDIR.'/plugins/ClientSideShorten/shorten.php'); - class ClientSideShortenPlugin extends Plugin { function __construct() @@ -40,16 +38,6 @@ class ClientSideShortenPlugin extends Plugin parent::__construct(); } - function onAutoload($cls) - { - switch ($cls) - { - case 'ShortenAction': - require_once(INSTALLDIR.'/plugins/ClientSideShorten/shorten.php'); - return false; - } - } - function onEndShowScripts($action){ if (common_logged_in()) { $user = common_current_user(); @@ -66,10 +54,10 @@ class ClientSideShortenPlugin extends Plugin } } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'Shorten', - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Craig Andrews', 'homepage' => 'http://status.net/wiki/Plugin:ClientSideShorten', 'rawdescription' =>