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

index 4a38f390f10a814089abba753c1fef5a5d2aa896..ec206dd75c2f8df2fae9846a2b2fa65ccbadf15e 100644 (file)
@@ -129,7 +129,7 @@ class DirectionDetectorPlugin extends Plugin {
      */
     function onEndShowScripts($action){
         if (common_logged_in()) {
-            $action->script('plugins/DirectionDetector/jquery.DirectionDetector.js');
+            $action->script($this->path('jquery.DirectionDetector.js'));
         }
     }