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 f18b516c7a
commit d211348dae

View File

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