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

index 230ba089de3e8fe0a6297ba27d196fb68a293920..ca495f79f4a8db1fa11e6b18bc2cb80d332dd2c1 100644 (file)
@@ -51,15 +51,15 @@ class AutocompletePlugin extends Plugin
 
     function onEndShowScripts($action){
         if (common_logged_in()) {
-            $action->script('plugins/Autocomplete/jquery-autocomplete/jquery.autocomplete.pack.js');
-            $action->script('plugins/Autocomplete/Autocomplete.js');
+            $action->script($this->path('jquery-autocomplete/jquery.autocomplete.pack.js'));
+            $action->script($this->path('Autocomplete.js'));
         }
     }
 
     function onEndShowStatusNetStyles($action)
     {
         if (common_logged_in()) {
-            $action->cssLink('plugins/Autocomplete/jquery-autocomplete/jquery.autocomplete.css');
+            $action->cssLink($this->path('jquery-autocomplete/jquery.autocomplete.css'));
         }
     }