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:
@@ -281,12 +281,12 @@ class OStatusPlugin extends Plugin
|
||||
}
|
||||
|
||||
function onEndShowStatusNetStyles($action) {
|
||||
$action->cssLink(common_path('plugins/OStatus/theme/base/css/ostatus.css'));
|
||||
$action->cssLink('plugins/OStatus/theme/base/css/ostatus.css');
|
||||
return true;
|
||||
}
|
||||
|
||||
function onEndShowStatusNetScripts($action) {
|
||||
$action->script(common_path('plugins/OStatus/js/ostatus.js'));
|
||||
$action->script('plugins/OStatus/js/ostatus.js');
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user