Makes ClientSideShorten loading shorten.js from config['plugins']['server'] if setted. Fix #3528

This commit is contained in:
Jean Baptiste Favre 2011-12-18 15:09:53 +01:00
parent ac5e29de5a
commit 8658d9618a

View File

@ -55,7 +55,7 @@ class ClientSideShortenPlugin extends Plugin
$user = common_current_user();
$action->inlineScript('var maxNoticeLength = ' . User_urlshortener_prefs::maxNoticeLength($user));
$action->inlineScript('var maxUrlLength = ' . User_urlshortener_prefs::maxUrlLength($user));
$action->script('plugins/ClientSideShorten/shorten.js');
$action->script($this->path('shorten.js'));
}
}