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=8658d9618aaac04ce36d826b74f91827d7a31f77;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')); } }