From: Evan Prodromou Date: Thu, 3 Feb 2011 16:25:56 +0000 (-0500) Subject: LinkPreview uses Plugin::path() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f598f8c7be264bcb945c7fb04a4dd0be95bafc8;p=quix0rs-gnu-social.git LinkPreview uses Plugin::path() --- diff --git a/plugins/LinkPreview/LinkPreviewPlugin.php b/plugins/LinkPreview/LinkPreviewPlugin.php index 65f896ca27..8bc726413d 100644 --- a/plugins/LinkPreview/LinkPreviewPlugin.php +++ b/plugins/LinkPreview/LinkPreviewPlugin.php @@ -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'),