]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ClientSideShorten uses Plugin::path()
authorEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 16:19:03 +0000 (11:19 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 16:19:03 +0000 (11:19 -0500)
plugins/ClientSideShorten/ClientSideShortenPlugin.php

index 27a3a56f72d2e3cd62db96aaf3d366a03acef5b2..443d2fffe03fee20797a8f4e4f6c3e2e8deea806 100644 (file)
@@ -53,7 +53,7 @@ class ClientSideShortenPlugin extends Plugin
     function onEndShowScripts($action){
         $action->inlineScript('var Notice_maxContent = ' . Notice::maxContent());
         if (common_logged_in()) {
-            $action->script('plugins/ClientSideShorten/shorten.js');
+            $action->script($this->path('shorten.js'));
         }
     }