From: Jean Baptiste Favre Date: Sun, 18 Dec 2011 14:09:53 +0000 (+0100) Subject: Makes ClientSideShorten loading shorten.js from config['plugins']['server'] if setted... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d211348dae0a8f003a1f893290f282b658c2c8dc;p=quix0rs-gnu-social.git Makes ClientSideShorten loading shorten.js from config['plugins']['server'] if setted. Fix #3528 --- diff --git a/plugins/ClientSideShorten/ClientSideShortenPlugin.php b/plugins/ClientSideShorten/ClientSideShortenPlugin.php index 6379acd334..cc10929231 100644 --- a/plugins/ClientSideShorten/ClientSideShortenPlugin.php +++ b/plugins/ClientSideShorten/ClientSideShortenPlugin.php @@ -55,7 +55,7 @@ class ClientSideShortenPlugin extends Plugin $user = common_current_user(); $action->inlineScript('var maxNoticeLength = ' . User_urlshortener_prefs::maxNoticeLength($user)); $action->inlineScript('var maxUrlLength = ' . User_urlshortener_prefs::maxUrlLength($user)); - $action->script('plugins/ClientSideShorten/shorten.js'); + $action->script($this->path('shorten.js')); } }