LinkPreview uses Plugin::path()

This commit is contained in:
Evan Prodromou 2011-02-03 11:25:56 -05:00
parent 3496559d8e
commit 2f598f8c7b
1 changed files with 1 additions and 1 deletions

View File

@ -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'),