From: Evan Prodromou Date: Thu, 3 Feb 2011 16:16:30 +0000 (-0500) Subject: Autocomplete uses Plugin::path() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0bab5e4a9ef114c89b2b12d105d4d68f80f101cd;p=quix0rs-gnu-social.git Autocomplete uses Plugin::path() --- diff --git a/plugins/Autocomplete/AutocompletePlugin.php b/plugins/Autocomplete/AutocompletePlugin.php index 230ba089de..ca495f79f4 100644 --- a/plugins/Autocomplete/AutocompletePlugin.php +++ b/plugins/Autocomplete/AutocompletePlugin.php @@ -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')); } }