forked from GNUsocial/gnu-social
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
This commit is contained in:
@@ -68,7 +68,7 @@ class CometPlugin extends RealtimePlugin
|
||||
$ours = array('jquery.comet.js', 'cometupdate.js');
|
||||
|
||||
foreach ($ours as $script) {
|
||||
$scripts[] = common_path('plugins/Comet/'.$script);
|
||||
$scripts[] = 'plugins/Comet/'.$script;
|
||||
}
|
||||
|
||||
return $scripts;
|
||||
|
||||
Reference in New Issue
Block a user