summaryrefslogtreecommitdiff
path: root/plugins/Autocomplete
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-02-17 12:03:14 -0500
committerCraig Andrews <candrews@integralblue.com>2010-02-17 12:03:14 -0500
commit46e9aa13aa87955b441bc63b7cf2f58622b131b0 (patch)
treef57c2927d3ecfe415bac335cbed243bc61face06 /plugins/Autocomplete
parentc19300272f0074359b2713c35d2fb46bbd1b42ec (diff)
htmloutputter->script() special cases src's that begin with plugin/ or local/ so that plugins don't need to include common_path() in every call to $action->script()
Adjust plugins to not call common_path() when it's not necessary Fix minify plugin
Diffstat (limited to 'plugins/Autocomplete')
-rw-r--r--plugins/Autocomplete/AutocompletePlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Autocomplete/AutocompletePlugin.php b/plugins/Autocomplete/AutocompletePlugin.php
index a28c65a29..d586631a4 100644
--- a/plugins/Autocomplete/AutocompletePlugin.php
+++ b/plugins/Autocomplete/AutocompletePlugin.php
@@ -42,8 +42,8 @@ class AutocompletePlugin extends Plugin
function onEndShowScripts($action){
if (common_logged_in()) {
- $action->script(common_path('plugins/Autocomplete/jquery-autocomplete/jquery.autocomplete.pack.js'));
- $action->script(common_path('plugins/Autocomplete/Autocomplete.js'));
+ $action->script('plugins/Autocomplete/jquery-autocomplete/jquery.autocomplete.pack.js');
+ $action->script('plugins/Autocomplete/Autocomplete.js');
}
}