ClientSideShorten uses Plugin::path()

This commit is contained in:
Evan Prodromou 2011-02-03 11:19:03 -05:00
parent 0bab5e4a9e
commit 6494f5938c

View File

@ -53,7 +53,7 @@ class ClientSideShortenPlugin extends Plugin
function onEndShowScripts($action){ function onEndShowScripts($action){
$action->inlineScript('var Notice_maxContent = ' . Notice::maxContent()); $action->inlineScript('var Notice_maxContent = ' . Notice::maxContent());
if (common_logged_in()) { if (common_logged_in()) {
$action->script('plugins/ClientSideShorten/shorten.js'); $action->script($this->path('shorten.js'));
} }
} }