Makes ClientSideShorten loading shorten.js from config['plugins']['server'] if setted. Fix #3528
This commit is contained in:
parent
ac5e29de5a
commit
8658d9618a
|
@ -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'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user