[ROUTES] Allow accept-header specification during router creation
Router: - Fix calls to connect, most of them were misusing the function's params URLMapper: - Minor fixes - Documentation - Add support for accept-header specification Plugins/*: - Fix calls to connect
This commit is contained in:
committed by
Diogo Cordeiro
parent
2032c7c1f7
commit
5c0a3102ff
@@ -51,7 +51,8 @@ class ClientSideShortenPlugin extends Plugin
|
||||
function onRouterInitialized($m)
|
||||
{
|
||||
if (common_logged_in()) {
|
||||
$m->connect('plugins/ClientSideShorten/shorten', array('action'=>'shorten'));
|
||||
$m->connect('plugins/ClientSideShorten/shorten',
|
||||
['action'=>'shorten']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user