From d211348dae0a8f003a1f893290f282b658c2c8dc Mon Sep 17 00:00:00 2001 From: Jean Baptiste Favre Date: Sun, 18 Dec 2011 15:09:53 +0100 Subject: [PATCH] Makes ClientSideShorten loading shorten.js from config['plugins']['server'] if setted. Fix #3528 --- plugins/ClientSideShorten/ClientSideShortenPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); } } -- 2.39.2