]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Makes ClientSideShorten loading shorten.js from config['plugins']['server'] if setted...
authorJean Baptiste Favre <statusnet@jbfavre.org>
Sun, 18 Dec 2011 14:09:53 +0000 (15:09 +0100)
committerJean Baptiste Favre <statusnet@jbfavre.org>
Sat, 15 Jun 2013 10:34:25 +0000 (12:34 +0200)
plugins/ClientSideShorten/ClientSideShortenPlugin.php

index 6379acd3340ceda95d016e74e6ed8d2335b55bc6..cc109292318a06d3a04ee1191ad649d58380dea7 100644 (file)
@@ -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'));
         }
     }