LinkPreview uses Plugin::path()
This commit is contained in:
parent
3496559d8e
commit
2f598f8c7b
@ -51,7 +51,7 @@ class LinkPreviewPlugin extends Plugin
|
||||
{
|
||||
$user = common_current_user();
|
||||
if ($user && common_config('attachments', 'process_links')) {
|
||||
$action->script('plugins/LinkPreview/linkpreview.min.js');
|
||||
$action->script($this->path('linkpreview.min.js'));
|
||||
$data = json_encode(array(
|
||||
'api' => common_local_url('oembedproxy'),
|
||||
'width' => common_config('attachments', 'thumbwidth'),
|
||||
|
Loading…
Reference in New Issue
Block a user